Move to question

liux2355liux2355 Member, BASIC Posts: 33

Hello,

I need to move my actor from self.positionX to self.positionY+400. I have few options.

First I can use move to, problem is that the max speed is 500, I need to move to the destination quickly, like in 0.5 sec.

Second, I can use interpolate, problem is that I can not make interpolating from self. position to self.position+400. It will continue moving w/o stopping.

Third, I can use change attribute, but I won't be able to see the transition of the movement.

So how can I move from self.positionX to self.positionY+400 in really short time and still be able to see the movement.

Thanks.

Go Download "Sub Run" in App Store.

Comments

  • BBEnkBBEnk Member Posts: 1,764

    Max speed can be typed in also 500 is not the limit.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited January 2015

    You're stating things that aren't actual constraints of GameSalad. They may be true depending on how you've set up your rules, though. Here's a demo that shows a few methods.

    Second, I can use interpolate, problem is that I can not make interpolating from self. position to self.position+400. It will continue moving w/o stopping.

    Edit: You can't interpolate an attribute to a variant of itself. You'll need to make a separate attribute to store the starting position. You can see an example of that in the attached demo.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • SocksSocks London, UK.Member Posts: 12,822

    @liux2355 said:
    First I can use move to, problem is that the max speed is 500 . . .

    This is not correct. The speed can be anything you like, even 34,059,442 !

  • liux2355liux2355 Member, BASIC Posts: 33

    @BBEnk said:
    Max speed can be typed in also 500 is not the limit.

    Thanks, I thought the speed bar 500 is the max.

    Go Download "Sub Run" in App Store.

  • liux2355liux2355 Member, BASIC Posts: 33

    @Socks said:
    This is not correct. The speed can be anything you like, even 34,059,442 !

    Thanks for the reply. Now I see I can type in any speed I want.

    Go Download "Sub Run" in App Store.

Sign In or Register to comment.