K00lman
Member
I am making a clicker and I was coding the upgrade buttons. I have it so that when the button is created, it runs:
and then in a controller object, I create it with:
but each time it does not scale the sprite and it's super tiny. I tried to remove the variable with the instance ID, change the order of some of the code chunks, but no matter what it does not scale, though it runs the creation code as it shows up in the right location.
When placed manualy in room, it all scales and works properly.
Code:
x = room_width;
y = 63;
image_yscale = obj_store.image_yscale/2;
image_xscale = image_yscale;
while place_meeting(x, y, obj_upgrade){
y += sprite_height;
}
Code:
upgrade_1 = instance_create_layer(0, 0, "Upgrades", obj_upgrade);
When placed manualy in room, it all scales and works properly.
Last edited: