RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Need to trigger a parallel event every time my player takes a step.

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 86
How would I go about doing this, i'm trying to get the event to trigger every time my character takes a step.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
How would I go about doing this, i'm trying to get the event to trigger every time my character takes a step.

Well, you could set variables to Player X and Player Y, then you could check them agains Last Player X and Last Player Y. So a parallel process common event like this:

Code: [Select]
Control Variables: [XXX: Player X] = [Player]'s X
Control Variables: [YYY: Player Y] = [Player]'s Y
Conditional Branch [XXX:Player X] != [ZZZ: Last Player X]
  Jump to Label: Player Moves
Else
  Conditional Branch [YYY:Player Y] != [AAA: Last Player Y]
    Label: Player Moves
    Control Variables: [ZZZ: Last Player X] = Variable: [XXX: Player X]
    Control Variables: [AAA: Last Player Y] = Variable: [YYY: Player Y]
    # What you want to happen when player moves
  Branch END
Branch END
Wait: 4 frames


There might be an easier way to do it, of course, but that is what pops to mind.