A
Artwark
Guest
Whenever I test my game for the first time, the objects spawn closer instead of being placed as they should.
obj_platleft & obj_platright
obj_controller
and incase you're wondering what the code for global.start is
obj_bot
global.start is a function that once I left click, that's when the objects start appearing. How do I fix this?
obj_platleft & obj_platright
Code:
Create event
can = 1;
Step event
if can == 1 && global.start = 1
{
y+=4;
}
if y>1000
{
instance_destroy();
}
if !instance_exists(obj_bot)
{
can = 0;
}
Code:
Create event
alarm[0]=100;
h = choose(180,250,370,450);
instance_create_layer(h+10,y,"layer_platform",obj_platleft);
instance_create_layer(h+100,y,"layer_platform",obj_popup);
instance_create_layer(h+1000,y,"layer_platform",obj_platleft);
Alarm event
alarm[0]=100;
h = choose(180,250,370,450);
instance_create_layer(h+10,y,"layer_platform",obj_platleft);
instance_create_layer(h+100,y,"layer_platform",obj_popup);
instance_create_layer(h+1000,y,"layer_platform",obj_platleft);
obj_bot
Code:
Create event
//direction = 180;
//direction = gravity_direction;
fall = 50;
dead = 0;
//gravity = x;
global.start = 0;
Global left pressed
global.start = 1;
hspeed+= fall;