Killing Turrets

For questions about using Classic.

Post » Tue Apr 20, 2010 8:35 pm

Hey there! So I'm running into an issue in which I'm trying to have these turrets shoot using a time function. Basically, these 2 turrets fire every second, or rather a new bullet is spawned at the gun point every 1000ms. When the turrets are hit 3 times, they're supposed to die, but I'm not sure how to stop the shoot function on one turret without stopping it for both turrets. I made a quick game of what I'm trying to do on here: [url:30okb866]http://dl.dropbox.com/u/4055367/turrets.cap[/url:30okb866]

You move with the arrow keys and fire with the z key, as well as jump with the shift key.
B
2
G
2
Posts: 17
Reputation: 684

Post » Wed Apr 21, 2010 12:18 am

If you don't use the function object for anything else, i don't think you need it.
This would be simpler way to do it:
http://dl.dropbox.com/u/4322334/turretsedit.cap
B
2
S
1
G
4
Posts: 71
Reputation: 1,342

Post » Wed Apr 21, 2010 5:54 pm

Grah, I can't open up your project... it gives me a runtime error about an abnormal program termination
B
2
G
2
Posts: 17
Reputation: 684

Post » Wed Apr 21, 2010 10:31 pm

Do you have the latest version, 0.99.84? If not, you can download it here: http://sourceforge.net/projects/constru ... e/download
B
2
S
1
G
4
Posts: 71
Reputation: 1,342

Post » Wed Apr 21, 2010 11:07 pm

Ooo, I didn't know I was outdated. Cool! Didn't even think to do a foreach. Thanks!
B
2
G
2
Posts: 17
Reputation: 684


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests