See this and help me pleaseee !! - SOlved

Get help using Construct 2

Post » Tue Jun 14, 2016 12:37 pm

fathijack1999 wrote:this not what i want. Ah just one problem after another.

Image
Any solution for the arrow ??? It`s spawn o much ...
At event sheet
Compare 8 frame - bow spawn the arrow
B
13
S
5
G
4
Posts: 119
Reputation: 3,353

Post » Tue Jun 14, 2016 1:04 pm

Dude, they told you. Use 'trigger once while true'. Why ?
Your animation is not playing at 1 frame/tick. On my computer that would be 120 frames/second. I guess it is playing at 10 frames a second.
So when you say... If animationframe = 8. That animation = 8 for several ticks in a row. And each tick this frame = 8, an arrow gets spawned, exactly as you ask it to do.
Use 'trigger once while true' in that event, as they told you.

And that animated gif is superannoying.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue Jun 14, 2016 1:10 pm

@99Instances2Go i i i i i dont` understand .. Are you just repeat what they say.. And yes.. I shouldn`t "Gif the event sheet i should just capture it
B
13
S
5
G
4
Posts: 119
Reputation: 3,353

Post » Tue Jun 14, 2016 2:19 pm

Or trow you capx, i (or some one else will modify it), or try to understand.

When the animation frame = frame 8, you want it to spawn an arrow. But.

Your animation will not change a frame each tick. Because the speed of the animation is lower than the speed of ticks / second. A tick is the time it takes for al events to run once. On a fast computer that happens 120 times in 1 second. But if your animation is set to 20 frame changes (animation speed) in 1 second, each frame will be on screen for 6 ticks. (120 / 20)

Meaning, frame 8 will be on screen for 6 ticks. Or, that condition frame = 8 will be true for 6 ticks. Or, that event will be true 6 times in a row. So it spawns 6 arrows.

Solve it this way. Right click on that event containing that condition frame = 8, choose "add another condtion' from the list that pops up. Double click 'system'. Look for 'Trigger once while true'.

Now you have an event with two conditions. The 'Trigger once while true' will fire the arrow only the first time frame = 8. All other 5 times it will not fire, hence only one time when it is true.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests