Power Bar Help

I'm trying to make a situation where the power bar increases continually for as long as you're touching the screen (with a maximum limit), but when you release, the velocity of an actor changes proportionally to the power bar. I've got the power bar made and functioning, but I can't figure out how to change the velocity of the actor from releasing without that actor being the part of the screen that you have to touch. Can anybody help me out?

Comments

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

    In the power bar actor, add When touch is released change attribute game.actorVelocity to self.size.Width (or Height).

    In the other actor, Change Attribute self.motion.linear velocity x (or y) to game.actorVelocity.

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

  • FoxHatGamesFoxHatGames Member Posts: 1

    Thanks for the Fast response! Works like a charm :smile:

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

    You're welcome.

    Also, I recommend that you change your forums username to remove the space. You'll find that your discussion threads show up more clearly and you won't have as many problems when you go to publish your apps with GameSalad.

    You can change your username by going to your Profile and clicking on Settings. This link may work for you: https://auth.gamesalad.com/account/settings.

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

Sign In or Register to comment.