Need Help Joystick Control Scheme

JoshKahaneJoshKahane Member Posts: 470
edited November -1 in Working with GS (Mac)
Hi

So using Codemonkey's wonderful Joystick Demo which is on the site and I downloaded I am trying to get a certain dual stick control scheme working but need help.

I want it so that the right stick moves the actor in direction its pointing and also rotate it to the right direction (so it always is pointing forwards).

Then I want the second stick just for the shooting. So when I for example am moving upwards/north with the right stick but can shoot in any direction around me using the left stick. So I don't just shoot forward.

Any help much appreciated, thanks.

If someone could create a modified version of the demo and upload it that would be brilliant, but I know you all have busy lives so its not necessary. :)

Comments

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Its pretty easy to do yourself.
    In the circle beachball like actor, change the Constrain Attribute behavior that is constraining self.Rotation to game.Angle2, to game.Angle.

    In the Spawn Actor that spawn the projectile in that beachball actor, change the direction to the expression, game.Angle2 - 90, relative to scene.
  • JoshKahaneJoshKahane Member Posts: 470
    Ahh its funny you tell me to do that because thats exactly what I have already from experimenting. Its only once you get it into your device where you see that when using both sticks at once the projectiles shoot off in the wrong direction.

    I don't want the shooting direction to change depending on the direction of the player. I want it to be independent in a way. As currently if my player changes direction the projectile shoots off in the wrong direction.
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Did you set the Spawn Actor direction relative to scene?
  • JoshKahaneJoshKahane Member Posts: 470
    Ahh. So simple. Yet so effective. Thank you Codemonkey! It did the trick. Guess I need to peel my eyes a little more. At least we came to a successful conclusion. :)
Sign In or Register to comment.