Spawning Various itens without clicking

Get help using Construct 2

Post » Sun Dec 23, 2012 6:04 pm

Hello guys,
I have a problem in my code I have a problem that when I'm not clicking the balls are spawning and when I'm clickin only a ball spawn.
I will Leave the download for you.
Download: http://www.sendspace.com/file/babsns
B
3
Posts: 4
Reputation: 771

Post » Sun Dec 23, 2012 6:46 pm

Event 4 is starting the animation over again, so your event 5 is triggering. Disable the action on event 4 and it works.
ImageImageImage
B
67
S
19
G
122
Posts: 3,200
Reputation: 73,387

Post » Mon Dec 24, 2012 1:05 am

Thanks the error was that tnx!
How can I limit the spawning itens(balls)?
B
3
Posts: 4
Reputation: 771

Post » Mon Dec 24, 2012 3:47 am

Ah, I forgot I tweeked a few things along the way. For your canon, set the initial animation speed to 0, otherwise as soon as it starts, it plays the animation once, and you get a ball spilling out at the beginning. Another trick is to call destroy on the ball in the On start of layout, to get rid of the one used to layout your objects.
ImageImageImage
B
67
S
19
G
122
Posts: 3,200
Reputation: 73,387

Post » Mon Dec 24, 2012 3:30 pm

Can you send me a file with an example?
B
3
Posts: 4
Reputation: 771

Post » Mon Dec 24, 2012 5:15 pm

Because doing what you said with the canon didn't work! I will put a link down bellow. I did the balls limitator with the System | nballs=0! And when nballs=0 all objects are destroyed!
B
3
Posts: 4
Reputation: 771

Post » Thu Dec 27, 2012 4:42 am

http://bht.hostingsiteforfree.com/samples/lol-teste_bht.capx
ImageImageImage
B
67
S
19
G
122
Posts: 3,200
Reputation: 73,387


Return to How do I....?

Who is online

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