Hey, so what I'm trying to do is to make spikes that automatically run(pop up and down) like in most games...thats no problem with the normal autorun event command but I'm having some confusion with how to make the spike damage the player 10-25 damage when he/she is touching the spikes while they are up. The variable I use for the spikes is 007
use the autonomous movement feature by the character graphic then in the main section set activate on player touch and with change health to -25 and add player step back to the end so it does not repeat till you touch it again
Um...I'll post how I have the script
Page 1
Direction Fix = On
Priority = Below Character
Trigger = Autorun
Events:
Wait: 120 Frames
Control Self Switch: A =ON
Page 2
Direction Fix = On
Priority = Same as Character
Trigger = Player Touch
Control Self Switch = A is on
Control Variables:[0007:Spikes] -= Random No. (10...25)
Set Move Route: Player (Wait): $> 1 Step Backward
Change HP: [], +Variable [0007:Spikes]
I don't know how to make it go back to normal(page 1) when it doesnt touch the player or when it does
Can anyone help me with this? This will improve my dungeons in my game
Try using player touch on the first line, and set the second to parallel process also put self switch A=OFF at the end and make sure page two has self switch A set in conditions. For auto run set parallel on the first page as well.
But see, I only know how to make it damage the player if he touches it;
I want it to continuously change from page 1 to page 2 on a timer of 3 seconds but if the player touches while its on page 2 it damages him and if he goes across it while on page 1 nothing happens
Still no help on this...
Hope isn't too late but here is my demo with autorun spikes using 4 variables and 2 events.
http://www.mediafire.com/?6eij73s879n9zac