How to make a bullet fire the other way?

memski425memski425 Member Posts: 19
edited August 2012 in Working with GS (Mac)
Hello,
I was wondering how to make a bullet fire from the left of a character holding a gun. I already was able to create the spawning bullet to the right but when the actor faced the other way, the bullet spawned to the right.

Comments

  • gamedivisiongamedivision Member Posts: 807
    If your spawning actors which really you shouldn't,in your bullet actor 2rules when actor faces left change attribute motion linear velocity x -200 or whatever your speed is,and right change attribute motion linear velocity x 200 ,or you could create a global speed and control it that way,create an integer call it bullet speed give it 200 or whatever you like,then in the change attribute motion linear velocity x to game.bullet speed for right and game.-bullet speed for left
  • memski425memski425 Member Posts: 19
    what do you mean by if i am spawning actors i really should not?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    what do you mean by if i am spawning actors i really should not?
    It just means that spawning actors is a resource draw and that it's better to recycle (move from off-screen).

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

Sign In or Register to comment.