a local variable

For questions about using Classic.

Post » Fri Oct 02, 2009 9:38 pm

i would like to make some points created in a loop and give them a different position

like
instance"indexloop" set position to targetposition + 10

but i need a temp var to set the 10 to like 20 every loop
by adding to the temp var every loop

i dont wanna create a private var for it, as the loop can be multi - activated at the same time
as it would overwrite its value

or would it? can i create a private var "i" for example and will it work for every loop
B
2
G
3
Posts: 72
Reputation: 994

Post » Fri Oct 02, 2009 10:00 pm

Can you not use LoopIndex * some number or use Random()?
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Fri Oct 02, 2009 10:28 pm

1*10 = 10
2*10= 20
3*10 = 30

hh, yeah i could :lol: thanx
B
2
G
3
Posts: 72
Reputation: 994


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests