12-15-2019, 09:07 AM
(12-14-2019, 10:50 PM)dreemurr555 Wrote:(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);
No, that was just an example. You set the coordinates of the destination.


![[Image: Vb8vjwW.png]](https://imgur.com/Vb8vjwW.png)
![[Image: uIrDfRP.png]](https://imgur.com/uIrDfRP.png)
![[Image: Jd3PZ8y.png]](https://imgur.com/Jd3PZ8y.png)
![[Image: BvmA5Pf.png]](https://i.imgur.com/BvmA5Pf.png)
![[Image: LAKfOPp.png]](https://imgur.com/LAKfOPp.png)
![[Image: 10CGjip.png]](https://imgur.com/10CGjip.png)
![[Image: gEIdmj2.png]](https://i.imgur.com/gEIdmj2.png)
![[Image: 8GCySLU.png]](https://i.imgur.com/8GCySLU.png)