Is there a jump scare steps script?

derpderp

Blake
Veteran
Joined
Aug 21, 2013
Messages
61
Reaction score
0
First Language
English
Primarily Uses
I want a script if you walk 100 steps, a event spawns in front of you.

it plays a se

the event disappears in 2 seconds

then your steps reset to 0

how do I do this?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You can do all of this via events, using a variable and resetting the variable rather than resetting the party steps. There are other things (like states) that also keep track of steps, so if you keep resetting it to 0, you could be causing issues in other areas.
 

derpderp

Blake
Veteran
Joined
Aug 21, 2013
Messages
61
Reaction score
0
First Language
English
Primarily Uses
How do I make it appear infront of the player?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Put the player's location into two variables. Change the values depending on the player's direction. Use Set Event Location to move it where it needs to be.


Did you consider what should happen if the player is facing something that's not passable on the 100th step? What if they're facing into a cliff wall or a tree or onto water? Your event will appear over something it shouldn't appear over.
 

derpderp

Blake
Veteran
Joined
Aug 21, 2013
Messages
61
Reaction score
0
First Language
English
Primarily Uses
Didn't consider that

Put won't that put the event at the players location instead of infront?
 

derpderp

Blake
Veteran
Joined
Aug 21, 2013
Messages
61
Reaction score
0
First Language
English
Primarily Uses
How do I make the event restart?

It seems to only occur once
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Can't tell you what to do if you don't show what you've already done ;)
 

derpderp

Blake
Veteran
Joined
Aug 21, 2013
Messages
61
Reaction score
0
First Language
English
Primarily Uses
I can walk 100 steps and it will spawn and disappear in 60 frames and play the se

works like I want.

The problem is, It only happens once
 

derpderp

Blake
Veteran
Joined
Aug 21, 2013
Messages
61
Reaction score
0
First Language
English
Primarily Uses
I tried setting the  Steps value back to 0 but it didn't work
 

derpderp

Blake
Veteran
Joined
Aug 21, 2013
Messages
61
Reaction score
0
First Language
English
Primarily Uses
Jum.PNG

This does not seem to reset the value
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Where are you setting the value of that variable so that it reaches 100? 

and by not reset, you mean it stays at 100?
 

derpderp

Blake
Veteran
Joined
Aug 21, 2013
Messages
61
Reaction score
0
First Language
English
Primarily Uses
I mean changing the value to 0
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
I was asking what you mean it doesn't reset, the value is still 100 after it's run?
 
Last edited by a moderator:

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
Is that by any chance referring to Player Step count?
 

derpderp

Blake
Veteran
Joined
Aug 21, 2013
Messages
61
Reaction score
0
First Language
English
Primarily Uses
Yes it is

If the variable is 100 it should set it back to 0
 

Mithran

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
404
Reaction score
217
First Language
English
Primarily Uses
derpderp, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


If you have something to add, please use the edit button. Be patient when waiting for responses.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
What actually happens? it stays at 100? becomes larger than 100? 

and as I've said above, where is the part that sets the steps count so that it reaches 100?
 

derpderp

Blake
Veteran
Joined
Aug 21, 2013
Messages
61
Reaction score
0
First Language
English
Primarily Uses
when you walk it adds 1 to the value
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top