N
NoFontNL
Guest
Title may be unclair, but I'll explain in a bit.
I have a variable called 'size', when size is higher than 2 I need to add a part in the middle of a script.
So here are some examples.
size=3
scr_script(sprite,image,0,0,0,sprite2,image2,0,0,-64);
size=4
scr_script(sprite,image,0,0,0,spriteMiddle,imageMiddle,0,0,-64,sprite2,image2,0,0,-128);
size=5
scr_script(sprite,image,0,0,0,spriteMiddle,imageMiddle,0,0,-64,spriteMiddle,imageMiddle,0,0,-128,sprite2,image2,0,0,-192);
Hope you'll get the idea.
Btw. I do not like if statements. Then for example size=n wouldn't work for every n
Any help would be appreciated!
I have a variable called 'size', when size is higher than 2 I need to add a part in the middle of a script.
So here are some examples.
size=3
scr_script(sprite,image,0,0,0,sprite2,image2,0,0,-64);
size=4
scr_script(sprite,image,0,0,0,spriteMiddle,imageMiddle,0,0,-64,sprite2,image2,0,0,-128);
size=5
scr_script(sprite,image,0,0,0,spriteMiddle,imageMiddle,0,0,-64,spriteMiddle,imageMiddle,0,0,-128,sprite2,image2,0,0,-192);
Hope you'll get the idea.
Btw. I do not like if statements. Then for example size=n wouldn't work for every n
Any help would be appreciated!