Using image point as projectile firing point

Get help using Construct 2

Post » Fri Feb 10, 2012 3:06 am

I have a ton of different sprites all of which are capable of firing projectiles. However, the firing point is different on all of them, and it also happens at a different spot in the "Attacking" animation, so I decided to set an image point which only exists in that particular frame of the Attacking Animation and test for it in the family of enemy sprites.

The Shell sprite is a generic sprite which contains a UID ref to the Animation Sprite, the respective firing frame index, as well as a lot of other common enemy properties.

Is there any chance when a player hits a "cpu spike" in the browser, that a frame might be skipped and the event will fail to return true? If so, how would you recommend restructuring the code to accommodate for this?

Thanks muchly for assistance,
-- cacotigon
Posts: 232
Reputation: 6,294

Return to How do I....?

Who is online

Users browsing this forum: oosyrag and 4 guests