(Solved) Spawning and scaling multiple instances

Get help using Construct 2

Post » Thu May 01, 2014 10:27 pm

Im trying to spawn a sprite at the same time in multiple scales, but somehow all im getting is one instance spawning in loop. How can i separate different separate instances from one sprite?

My current setup:
1."object" has instance variable "Scale", value of 1
2.system-every 3 seconds-spawn "object"
3."object"-on created-subtract 0.1 from "object" instance variable
4.Set scale "object" from instance variable "Scale"

I tried different versions of this, but none works
any ideas?

thanks

p
Last edited by pcrnst on Sat May 03, 2014 3:12 pm, edited 1 time in total.
B
3
Posts: 4
Reputation: 333

Post » Thu May 01, 2014 11:31 pm

according to this, every instance should spawn at scale 0.9

you want every instance to be 0.1 smaller than the previous one?
B
43
S
12
G
6
Posts: 446
Reputation: 6,802

Post » Fri May 02, 2014 5:40 am

yes, thats exactly. The idea is not to manually copy and paste different scale instances,
but to let them spawn. That way i can finetune the result faster.
B
3
Posts: 4
Reputation: 333

Post » Fri May 02, 2014 7:26 am

i have used a single global wariable for this. u dont actually need instance variables
just make a global variable Scale
each time u create object set its size to Scale and after that, substract 0.1 from Scale.

just draw something on the attached file
You do not have the required permissions to view the files attached to this post.
Truth shall be your freedom...
B
14
S
2
G
1
Posts: 45
Reputation: 930

Post » Fri May 02, 2014 7:36 am

i was just doing the same thing =P

anyway, since i already made this and all....
You do not have the required permissions to view the files attached to this post.
B
43
S
12
G
6
Posts: 446
Reputation: 6,802

Post » Sat May 03, 2014 3:11 pm

yes, of course. I got it working. Thanks a lot guys
Now i understand why i didnt need instance variables.

p
B
3
Posts: 4
Reputation: 333


Return to How do I....?

Who is online

Users browsing this forum: SputnikCZ and 3 guests