scoring problem

Get help using Construct 2

Post » Tue Mar 12, 2013 10:57 pm



on my laptop this works fine but on pc (bettter performance) ghostDead number increasing unexpectedly.

here is capx too.

https://dl.dropbox.com/u/87325929/barbarossa.capx

how can i make a better scoring system?

thanks.ebrar2013-03-12 22:58:58
B
14
S
4
G
3
Posts: 101
Reputation: 3,499

Post » Wed Mar 13, 2013 1:28 am

Move 'trigger once' up to the can<=0, and move Add 1 to ghostDead to after the destroy. Also, you can avoid the Wait actions here by using the built in 'Wait time' for the fade behaviour. Even the ghost can have a fade with a wait of 1 and a fade of 0.001. Also you can move your destroy code to a 'On destroyed' event.
barbarossa_tweek.capxblackhornet2013-03-13 01:28:20
ImageImageImage
B
67
S
19
G
124
Posts: 3,215
Reputation: 74,417

Post » Wed Mar 13, 2013 9:41 am

thanks a lot blackhornet :)
B
14
S
4
G
3
Posts: 101
Reputation: 3,499

Post » Wed Mar 13, 2013 10:22 am

But in your capx we can only destroy the first ghost (because of the trigger once). And also i need them to spawn coins. I think i need another solution.

I added another "ghost...can<=0" condition near the trigger once. Maybe this can work.ebrar2013-03-13 11:11:26
B
14
S
4
G
3
Posts: 101
Reputation: 3,499

Post » Wed Mar 13, 2013 2:05 pm

Ah, you need a ForEach: barbarossa_tweek2.capx
ImageImageImage
B
67
S
19
G
124
Posts: 3,215
Reputation: 74,417

Post » Wed Mar 13, 2013 2:19 pm

Thanks again. But mine too started to work properly. For now at least.
B
14
S
4
G
3
Posts: 101
Reputation: 3,499


Return to How do I....?

Who is online

Users browsing this forum: mjj1990, Yahoo [Bot] and 7 guests