Main Menu
  • Welcome to The RPG Maker Resource Kit.

[Request] Autorun spikes?

Started by MajikalBlood, November 10, 2011, 05:23:12 AM

0 Members and 1 Guest are viewing this topic.

MajikalBlood

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

CodeMaster

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

[spoiler]


[/spoiler]
[spoiler]John 3:16: For God loved the world so much that he gave his one and only Son, so that everyone who believes in him will not perish but have eternal life[/spoiler]

MajikalBlood

#2
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

MajikalBlood

Can anyone help me with this? This will improve my dungeons in my game

DoctorTodd

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.

MajikalBlood

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

MajikalBlood


Woogimember

Hope isn't too late but here is my demo with autorun spikes using 4 variables and 2 events.
http://www.mediafire.com/?6eij73s879n9zac