move up and down

Forum Home Forum Home > Construct 2 General > How do I....?
 Post Reply Post Reply
Author
10,437 Rep
Post Options Post Options   Quote mina Quote  Post ReplyReply Direct Link To This Post Topic: move up and down
    Posted: 25 Apr 2012 at 9:18am
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 :)
Back to Top
10,544 Rep
Post Options Post Options   Quote Joannesalfa Quote  Post ReplyReply Direct Link To This Post Posted: 25 Apr 2012 at 9:29am
Didn“t you try vertical sine behavior?
Back to Top
10,437 Rep
Post Options Post Options   Quote mina Quote  Post ReplyReply Direct Link To This Post Posted: 25 Apr 2012 at 9:58am
@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"
Back to Top
10,544 Rep
Post Options Post Options   Quote Joannesalfa Quote  Post ReplyReply Direct Link To This Post Posted: 25 Apr 2012 at 10:26am
Originally posted by mina mina wrote:

@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"


Make sure to refresh the browsers, i'm really sure they exactly behave same using javascript, not specificed browsers
Back to Top
10,437 Rep
Post Options Post Options   Quote mina Quote  Post ReplyReply Direct Link To This Post Posted: 25 Apr 2012 at 11:02am
Thanx @Joannesalfa. Yes it works fine now.

Thanx again 4 ur help.

Have a nice day :)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down