Evil mario mushroom like attributes
Jousi
Member Posts: 6
Hey Guys!
I just wanted to ask how to make an actor that if my main actor collides with from the sides, he will get killed, but if he collides with him from the top (if the main actor jumps on him) the actor will die. As in mario and the evil mushrooms.
Thanks in advance!
Josef Reischig
I just wanted to ask how to make an actor that if my main actor collides with from the sides, he will get killed, but if he collides with him from the top (if the main actor jumps on him) the actor will die. As in mario and the evil mushrooms.
Thanks in advance!
Josef Reischig
Comments
@Jousi
Hello Josef and welcome to GameSalad and the forums.
first to say, it's not good Forums practice to make another thread identical to the one previously... it can cause confusion and clutters the Forums. If you haven't had an answer, wait at least a couple of hours (or longer) for someone to reply...if still no one has replied, just add another post to the first thread, saying "bump" or "anyone can help, please?", and this will bring your thread to the top of the pile.
I'll delete your first post that's identical to this one now.
To answer your question, you need to make three invisible actors, who's movements are constrained to the movements of the mushroom (if it's moving); or if its not, placed left and right of the mushroom, half and half, with your main actor gets killed on collision rules inside. Make sure these two are a bit shorter than the height of the mushroom graphic.
The third invisible actor is placed over the top of the mushroom, and in it's rules, put the collision & destroy behaviour.
Best of luck! Have you gone through the manual yet, btw? You'll find it a great "quick start" guide if you haven't.... (found under the Help menu at the top of this web page).
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
OK, Josef, no worries. :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
http://www.jamie-cross.net/?portfolio=gamesalad-recipe-003-enemy-collisions-detecting-a-head-jump-vs-a-side-collision
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
@jamie_c @Jousi
Hi Jamie, that's a better way than mine, I think; much more elegant, good one. :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page