animation/hotspot

For questions about using Classic.

Post » Sat Oct 30, 2010 11:24 am

I tried out the following: create animation of a vertical line that turns into a ball. Ball falls on ground.

Frame 1: vertical line.
Frame 2: ball in center of where line once was.
Question: how do I let Construct know that the ball in frame 2 must start in center of the frame 1-line?

I tried not cropping frame 2-ball and use the same height/width as the line used, but didn't work.
I tried the hotspot, in image editor. Worked, but when a hotspot is placed under (outside) the frame, the frame is displayed up side down.

Am I correct for using the hotspot-function for this?

(frame 3-6 should be: ball moves towards ground)
B
16
S
5
G
7
Posts: 599
Reputation: 5,000

Post » Mon Nov 22, 2010 3:40 pm

Does it have to be an animation? Can't you do it much easier? What I personally would do is make a private variable for the stick.
[code:9ffwlrfn]Always:Subtract from Stick('timer') 1*timedelta
Stick:Timer less or equal to 0:Stick destroy
Stick:Timer less or equal to 0:Stick>Create object BALL[/code:9ffwlrfn]
B
2
G
2
Posts: 30
Reputation: 710

Post » Mon Nov 22, 2010 6:40 pm

[quote="Darius":1uy86y22]Does it have to be an animation? Can't you do it much easier? What I personally would do is make a private variable for the stick.
[code:1uy86y22]Always:Subtract from Stick('timer') 1*timedelta
Stick:Timer less or equal to 0:Stick destroy
Stick:Timer less or equal to 0:Stick>Create object BALL[/code:1uy86y22][/quote:1uy86y22]

Thanks for the reply.
What does "1*timedelta" do?
B
16
S
5
G
7
Posts: 599
Reputation: 5,000


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests