S
Shizuky
Guest
Hi,
I wanted my game , when a Player coems to certain spot to create warp which will port him somewhere, but I need to create a creation code when it spawns. How could I code , that when creating that warp it will be created with creation code?
I used this code to create Warp:
var p = instance_create_layer(480,672,"Instances_3",objWarp)
p.image_xscale = 3;
p.image_yscale = 3;
and I want it to be created with this creation code:
targetRoom = Room5
targetX = 480
targetY = 672
I wanted my game , when a Player coems to certain spot to create warp which will port him somewhere, but I need to create a creation code when it spawns. How could I code , that when creating that warp it will be created with creation code?
I used this code to create Warp:
var p = instance_create_layer(480,672,"Instances_3",objWarp)
p.image_xscale = 3;
p.image_yscale = 3;
and I want it to be created with this creation code:
targetRoom = Room5
targetX = 480
targetY = 672