The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: MajikalBlood on November 10, 2011, 05:23:12 AM

Title: [Request] Autorun spikes?
Post by: MajikalBlood on November 10, 2011, 05:23:12 AM
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
Title: Re: [Request] Autorun spikes?
Post by: CodeMaster on November 10, 2011, 10:48:16 PM
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
Title: Re: [Request] Autorun spikes?
Post by: MajikalBlood on November 11, 2011, 03:40:56 AM
Um...I'll post how I have the script
Page 1
Code: [Select]
Direction Fix = On
Priority = Below Character
Trigger = Autorun

Events:
Wait: 120 Frames
Control Self Switch: A =ON
Page 2
Code: [Select]
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
Title: Re: [Request] Autorun spikes?
Post by: MajikalBlood on November 19, 2011, 09:37:43 AM
Can anyone help me with this? This will improve my dungeons in my game
Title: Re: [Request] Autorun spikes?
Post by: DoctorTodd on November 19, 2011, 06:33:16 PM
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.
Title: Re: [Request] Autorun spikes?
Post by: MajikalBlood on November 25, 2011, 03:14:14 AM
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
Title: Re: [Request] Autorun spikes?
Post by: MajikalBlood on December 15, 2011, 10:10:09 AM
Still no help on this...
Title: Re: [Request] Autorun spikes?
Post by: Woogimember on February 18, 2012, 09:00:06 PM
Hope isn't too late but here is my demo with autorun spikes using 4 variables and 2 events.
http://www.mediafire.com/?6eij73s879n9zac