Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

problem: teleporting with variables.

elder

Member

Logically I understand how it work, but when using the tranfer event with variables in VX it seems to be buggy...

Technically I create 3 variables:

player_coord_x
player_coord_y
map_ID

then I simply set these variable with Player X, Player Y and Map ID from the system, and finally I use them with the transfer event.

To my sense it should work, but it simply transfer the player to any map.

Anyone have met success with this part?
 
Are you trying to do something where you want to remember where your player teleported from, then teleport back to that location?  If so all you should be doing is setting those 3 variables then teleporting based on those 3 variables...

How are you setting the Map ID?
 

elder

Member

AHHHH !
Forget it, I solved this problem!

I was a blind idiot! I didn't associate the variables properly in the tranfer event.

the other is Map_ID, x, y, and I was always seeing the order differently like this x, y, Map_ID.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top