12-14-2019, 10:50 PM
(09-20-2019, 03:43 PM)Gatete Wrote: On the create event of the warp object you have a set of variables, which are the following.Question, should the numbers always be 768 and 432? or do they have to match a certain point on the grid?
Code:///Warps Mario to a different room
/*
** This item uses creation code!
**
** postchange = Pick from below: (Optional)
** 0: Mario
** 1: Warp Mario
** 2: Jump Spawn
** 3: Vine Spawn
**
** postx = New x coordinate
** posty = New y coordinate
** myroom = Destination room (Optional)
**
*/
You just need to set up postchange to one of those 4 values, for example if you want to make Mario appear on a pipe you set up the following.
Code:postchange = 1;
postx = 768;
posty = 432;
myroom = room_next(room);