gaining points by killing another actor
lalag
Member Posts: 2
hello!
I'm trying to recreate this game - http://www.bbc.co.uk/cbeebies/charlie-and-lola/games/charlie-and-lola-cloudhopping/
how do i go about doing the catching the butterfly action.
I have the butterfly moving across the screen using interpolation and the actor can jump from platform to platform.
I need it so when the character actor is close to the moving butterfly actor and the space bar is pressed, the butterfly actor will disappear.
Thank you for your help in advance!
I'm trying to recreate this game - http://www.bbc.co.uk/cbeebies/charlie-and-lola/games/charlie-and-lola-cloudhopping/
how do i go about doing the catching the butterfly action.
I have the butterfly moving across the screen using interpolation and the actor can jump from platform to platform.
I need it so when the character actor is close to the moving butterfly actor and the space bar is pressed, the butterfly actor will disappear.
Thank you for your help in advance!
Answers
I would make it so ,when space is pressed, it spawns a small invisible actor ,
Constrained to the main actors x,y position
On this spawned actor have ,when (spawned actor collides with butterfly destroy butterfly
And have a timer for like 0.5 seconds on the (spawned actor) stating , after 0.5 seconds destroy spawned actor
Hope this helps . Also hope that's what you mean
And if you don't want it only to work with collisions, you could use magnitude to determine how far away the butterfly is.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
To post an image, upload it to a file-sharing service to generate a URL and then use <$img src="URL"> without the $ symbol.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User