12-15-2019, 09:17 PM
(12-15-2019, 09:07 AM)Gatete Wrote:(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.
You know what might also help me? The notes that Hello included with the engine. It would be nice to know how to access them.