How do I Control the speed of a guillotine with a variable

Get help using Construct 2

Post » Sat Mar 05, 2016 7:09 pm

Hi, I'm working on a project that requires guillotines that each have a variable controlling their speed, for example, if guillotine1speed=3 it should take 3 seconds for the guillotine to go all the way down and all the way back up.
B
5
Posts: 10
Reputation: 247

Post » Sat Mar 05, 2016 11:04 pm

You could create an animation of the blade coming down and returning which runs at a global or object variable-controlled speed.

"To be yourself in a world that is constantly trying to make you something else is the greatest accomplishment."

Ralph Waldo Emerson
B
10
S
2
G
1
Posts: 56
Reputation: 1,300

Post » Sun Mar 06, 2016 2:12 am

You could add a sine behaviour to your object and set the start of the vertical sine and the duration in the event sheet (with your variable).
Or half the duration wait a little bit and start the sine with a period offset to bring it up again.

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707


Return to How do I....?

Who is online

Users browsing this forum: Nicolas951, Shenkai the ssj, Yahoo [Bot] and 25 guests