move up and down

Get help using Construct 2

Post » Wed Apr 25, 2012 9:18 am

Hello,

I want to make the shafts moving up and down all the time like in the capx file below.

http://dl.dropbox.com/u/52040403/up%20and%20down.capx

I tried the move to behavior to move the shafts up and when they hit their target position move them again down, but it's not working perfectly with me. Then i used the way shown in the capx file it works fine, but i need to repeated too many times.

Is there any other way to make the same movement.

Thanx :)
B
303
S
5
G
5
Posts: 163
Reputation: 11,992

Post » Wed Apr 25, 2012 9:29 am

Didnt you try vertical sine behavior?
B
45
S
10
G
13
Posts: 2,572
Reputation: 15,142

Post » Wed Apr 25, 2012 9:58 am

@Joannesalfa Thankx it's the correct way and that what i was looking for.

I tried the vertical sine behavior it works fine with me on firefox, but it doesn't on Internet explorer 9 "some of the shafts move vertical and some move horizontal even if i set their movement to vertical"
B
303
S
5
G
5
Posts: 163
Reputation: 11,992

Post » Wed Apr 25, 2012 10:26 am

[QUOTE=mina] @Joannesalfa Thankx it's the correct way and that what i was looking for.

I tried the vertical sine behavior it works fine with me on firefox, but it doesn't on Internet explorer 9 "some of the shafts move vertical and some move horizontal even if i set their movement to vertical"[/QUOTE]

Make sure to refresh the browsers, i'm really sure they exactly behave same using javascript, not specificed browsers
B
45
S
10
G
13
Posts: 2,572
Reputation: 15,142

Post » Wed Apr 25, 2012 11:02 am

Thanx @Joannesalfa. Yes it works fine now.

Thanx again 4 ur help.

Have a nice day :)
B
303
S
5
G
5
Posts: 163
Reputation: 11,992


Return to How do I....?

Who is online

Users browsing this forum: LI0NHART, tawny, Txori, Ubivis and 1 guest