Problem Four

Problem: When a bullet hits a character, the character explodes and the explodes then disappears.  

Solution:

Bullet:
Create Event: start moving in directions 010000000 with speed set to 4
Collision Event with object obj_plane: destroy the instance

Object Being Hit:
Collision Event with object obj_bullet: set the number of lives relative to -1, change the instance into object obj_explosion, yes performing events, destroy the instance

Explosion:
Collision Event with object obj_bullet: for all obj_explosion: destroy the instance
Other Event: Animation End: destroy the instance

Advertisement

Leave a Comment

Filed under GameMaker

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s