• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows Help with program

J

Jfetyko

Guest
So I want to a a object to keep on going to the right each time it gets called but it only goes in one spot!

Code:
var inst;
inst = instance_create_depth(64+64, 64, 10, obj_feild);
if (feilds <= 10)
{
with(inst)
{

}
}
it would be a big help, Thanks in advance!
 
B

Beleg

Guest
Hello, which version of Game Maker are you using ?

Each time you run your code, it will create a new instance of obj_feild at the same x coordinate, equal to 128. And there is no instruction to move your instance to the right in your code. You should separate the code for your instance creation from the one for moving your instance.
 
Top