mardi 27 mai 2014

Bitmap Collision Detection(AS3)


Vote count:

0




I have some bitmaps, one of the character and the other of spikes. I'm wanting to detect when the character bitmap collides with the spikes. The spike bitmaps are added to an array because there's so many of them. I've read things like this: http://ift.tt/PRHvMX


But that uses BitmapData and draws the bitmaps. Mine are embedded from PNGs. For example:



[Embed(source="../lib/NewChar.png")]
public var CharImage:Class;

public var char:Bitmap = new CharImage();


How would I go about this or maybe I'm just missing something?



asked 18 secs ago






Aucun commentaire:

Enregistrer un commentaire