fishuuu
Member
Hi!
I need to make an object get smaller when it collides with an object larger than itself.
Essentially, the Flash game Fishy is what I'm going for:
except instead of dying immediately when you hit something larger than yourself, you shrink and your score goes down.
I'm having a lot of difficulty figuring out how to do it though! Not sure which object to put the code on, or if image_xscale and image_yscale are the right variables for this. I did successfully use them to make the player sprite bigger on collisions.
How do I code this kind of check?
pictured above: the game (frame count reduced to decrease file size)
I need to make an object get smaller when it collides with an object larger than itself.
Essentially, the Flash game Fishy is what I'm going for:
except instead of dying immediately when you hit something larger than yourself, you shrink and your score goes down.
I'm having a lot of difficulty figuring out how to do it though! Not sure which object to put the code on, or if image_xscale and image_yscale are the right variables for this. I did successfully use them to make the player sprite bigger on collisions.
How do I code this kind of check?
pictured above: the game (frame count reduced to decrease file size)