Control frames in the animation

Get help using Construct 2

Post » Fri Nov 16, 2012 2:57 am

Hello, I have an animation that will be a display of collection objects. This animation has 6 frames, where the first all empty and appear as the collection, the display will fill like this:

frame0:( )( )( )( )( )
frame1:(X)( )( )( )( )
frame2:(X)(X)( )( )( )
frame3:(X)(X)(X)( )( )
frame4:(X)(X)(X)(X)( )
frame5:(X)(X)(X)(X)(X)


But every time the player collides with the object, the animation progresses two frames. What am I doing wrong? How to fix it?

https://www.dropbox.com/s/upzuy64ltm4lacq/coleta.capx

B
39
S
6
Posts: 79
Reputation: 4,040

Post » Fri Nov 16, 2012 6:27 am

try this http://db.tt/kNzUK6Up
B
12
S
2
G
2
Posts: 96
Reputation: 1,583

Post » Fri Nov 16, 2012 4:47 pm

Thank you. I'm beginner in Construct, english and programming. I dont understand the expression Object.Count. What exactly it to do?

Thanks again!
B
39
S
6
Posts: 79
Reputation: 4,040

Post » Fri Nov 16, 2012 6:59 pm

The Object Count is the total number of instances (or copies) of a given object. So, if there are 2 bullets on the screen Bullet.Count would equal 2. Don't forget about any objects not destroyed outside the visible area.
B
12
S
4
G
2
Posts: 59
Reputation: 3,739


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, anty21ro, DamonZero, MChiz, Radulepy and 0 guests