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.
Spawning vehicles reletive to player[resolved]

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 83
I was wondering if there was a way to spawn vehicles relative to the players x,y coords? Or make the player seem like a vehicle which can be toggled through a spell?
« Last Edit: August 16, 2009, 01:01:06 PM by popopo169 »

*
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
Yeah, the event command set vehicle location will put the vehicle anywhere you want it.

All you need to do to make it relative to the player is use variables - set three variables:

Contorl Variable -> Other -> Map ID
Control Variable -> Player -> Map X
Control Variable -> Player -> Map Y

Then you can play around with those variables to put it where you want.

If for instance, you wanted to put it directly in front of the player, you would need to grab direction as well, then have a command like this:

Code: [Select]
Control Variable[1] -> Other -> Map ID
Control Variable[2] -> Player -> Map X
Control Variable[3] -> Player -> Map Y
Control Variable[4] -> Player -> Direction
Comment: Direction; 2=> Down; 4 => Left; 6=> Right; 8 => Up
Conditional Branch: Variable 4 <= 4
  Conditional Branch: Variable 4 == 4
    Control Variable[2] -= 1
  Else
    Control Variable[3] += 1
  END
Else
  Conditional Branch: Variable 4 == 6
    Control Variable[2] += 1
  Else
    Control Variable[3] -= 1
  END
END
Set Vehicle Location: Variable [1], [2], [3]
 

**
Rep: +0/-0Level 83
Thanks man that was helpful

pokeball NPCOfflineMale
***
Rep:
Level 84
Asking you to rescue princesses since '05
then put [RESOLVED] in the title of the original post
Why do 1 lined nameless NPCs never get taken seriously?