Change direction. Pls Help !!

magic_murphmagic_murph Member Posts: 1
edited November 2012 in Working with GS (Mac)
hi everyone

Can anyone help with this problem please ?

I have two vertical boundary actors at the edge of the screen and want my platform actor to move between them.

I start the platform actor moving by using an "Accelerate" behaviour.

I have tried using this method found in the forums :

changeAttribute (self.motion.linear velocity.x) to -(self.motion.linear velocity.x)

but the platform actor just seems to bounce on the first vertical boundary it encounters !

Any ideas why ??

Thanks.

Jon

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    So this would be like a sidescroller, say Jetpack Joyride? Take a look at your physics settings. You may need to remove/reduce the amount of bounciness and/or friction.

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

  • magic_murphmagic_murph Member Posts: 1
    Thanks for the reply.

    I've just sorted it out.

    I changed the "accelerate" to a "change velocity" to start the motion.

    All works fine now.

    Cheers.

    Jon
Sign In or Register to comment.