• 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!

Access object argument

G

Givago

Guest
Good night,

I had a question in some tests,

I create the object with the:

Instance_create

And inside it has a
create,

In which
a = argument0;
b = argument1;
move_towards_point (mouse_x + a, mouse_y + b, 10);

How do I submit this argument?
 

Conbeef

Member
I'm not sure what you mean.

var inst = instance_create(x, y, obj);
inst.a = //whatever
inst.b = //whatever

Is this what you're looking for?
 
Top