Game problem. Can't find the solution

Get help using Construct 2

Post » Tue Jun 23, 2015 3:35 am

@alextro could it be that the enemy is speeding up every second?
B
8
S
2
Posts: 146
Reputation: 1,132

Post » Tue Jun 23, 2015 6:24 am

Please upload your capx and share it, so it is possible to take a look..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jun 23, 2015 9:58 am

@zikdot
Shouldn't be a problem, once destroyed system will add a value to the score. Might be it would be something with collision event. To anticipate speedy object doesn't detected collide with other object, I usually use overlap test:

Sprite1 is overlap Sprite2, Trigger once >> Destroy Sprite1

Put 'Trigger once' after 'overlap'.
ImageImage
B
114
S
51
G
24
Posts: 790
Reputation: 23,480

Post » Tue Jun 23, 2015 12:10 pm

@LittleStain I just sent you a dropbox link with the capx in over a PM. Not sure if you received it because its showing in my outbox

@alextro I'll have a go at that thanks
B
8
S
2
Posts: 146
Reputation: 1,132

Post » Tue Jun 23, 2015 12:37 pm

The problem could be the checking of the webstorage value on every collision..
It is completely unnescessary to do so if you set a variable to the webstorage value..
And even that seems unnescessary for you are checking the same webstorage every tick and setting a sprite visible accordingly..
Checking it every tick is also not nescessary..

Also wondering why you'd use webstorage for this instead of a global variable..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jun 26, 2015 6:53 pm

@alextro could you just explain again what you mean by your previous comment where you said

"Sprite1 is overlap Sprite2, Trigger once >> Destroy Sprite1

Put 'Trigger once' after 'overlap'."?

Thank you :)
B
8
S
2
Posts: 146
Reputation: 1,132

Post » Fri Jun 26, 2015 10:26 pm

Image
It just how the condition should arranged in that order within same block condition, with 'Trigger once' put at very bottom. With this setup the action will execute once, each time the condition met.

Say that you want to add value to a variable each time sprite1 (and it's instances) hit sprite2. So if the sprite1 overlap sprite2 at one time, the action will trigger. Another time they overlap again, the action will trigger again.

It will be different if you put 'Trigger once' at very top order. Try it by yourself :roll:
ImageImage
B
114
S
51
G
24
Posts: 790
Reputation: 23,480

Post » Sun Jun 28, 2015 12:33 am

@alextro thank you, i will give it a try and let you know :)
B
8
S
2
Posts: 146
Reputation: 1,132

Post » Thu Jul 16, 2015 5:37 pm

@alextro so just to clarify how should I write it out?

Thank you
B
8
S
2
Posts: 146
Reputation: 1,132

Post » Thu Jul 16, 2015 7:30 pm

For further assistance you can just PM me if you can't show you current work here. Because what you might think about with my own though could be different. Couples of years ago I might just like you, uncertain about how to write the code down to achieve specific result.
ImageImage
B
114
S
51
G
24
Posts: 790
Reputation: 23,480

Previous

Return to How do I....?

Who is online

Users browsing this forum: newt and 12 guests