This is my first tut
Weeee !!!
Here I will try to teach you how to make spikes that will be rejected with button/switch so it will go back into the ground..
First of all you need to know how switches are used so it will be a bit easier if you dont know how they work maybe this explains it a bit...
Now using the event layer make a Switch sprite so it will be easy for you to see where the button is
just like in image 1
Also make the spikes that will come out of the ground
Image 1Now we want it to hurt the player if he/she touches it, not ? do something like this..
Image 2First, make something like a flash screen so the player notices something like " Omy GAWD ! I CANT TOUCH THAT ! "
and make it jump away or something.. ( If you dont want that put through ON to OFF so you wont need the jump, I used it because i liked this more. )
Okay lets continue..
Go back to the switch and we will start making the scene of the spikes that will retreat..
Image 3As you can see it turns a switch on the name wont matter but its the number it has..
Also use something like a sound to give it some life
..
Now make a new page at the Switch event and put conditions to switch That was turned on at the first page..
like this.
Image 4Now we have made the switch to turn everything on
Go back to the spikes event and make a new page here too.
Set the Condition also to the switch that was turned on in image 3.
Now we probably want it to move so it looks very nice wont we ?
So make a move event command that will change graphics and put a pause in-between every one of em so it wont skip so fast as u can see, also an wait + an SELF SWITCH ! this is important so you wont have to make the same event over and over but you can just copy paste it.
Image 5Now we just make an Page 3 and with that put it Through, Condition to If SELF SWITCH A = On, and of course the sprite
Image 6Hope this helps you and tell me if I forgot something
Have a nice day
.
I included a demo if you are not that smart and wanna see it again
( Just kidding )