Codemonkey dual joystick demo question

THRSTNTHRSTN Member Posts: 178
edited November -1 in Working with GS (Mac)
im working with codemokeys dual joystick demo and was wondering about adding an animation to the directional movement and were exactly that would be placed example: stick1 is = angle 90 degrees animate back image ( for moving straight up) and so on for top right\left and bottom right\left etc. A good example is in the game botblaster. I asked the creator how he achieved the effect but I haven't heard anything back from him so far. Codemonkey if your listening I'd be greatfull for the help( did that sound like a prayer? If I say it out loud it sounds like a prayer or a Childs letter to Santa) any way any help would be super great thanks

Comments

  • THRSTNTHRSTN Member Posts: 178
    and a bumpin we go anybody?
  • cbtcbt Member Posts: 644
    I didn't understand the question. You want to animation to happen on the "controlled actor" or on the joystick itself?
  • THRSTNTHRSTN Member Posts: 178
    thanks for responding. yes the "controlled actor" is animated when ever the joystick (in the demo "stick one") is touched.
    stick one is moved up right the "player" is animated from a still image to the image of him animated walking up stage right. does that make sense?
  • THRSTNTHRSTN Member Posts: 178
    Bump
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    In one of the demos there is an example where the ball rotates depending on the angle of the joystick. Instead of rotating, add rules that determine if the angle is between a set of values and then run the animate behavior based on that.

    Rule: If game.Angle > 67.5 and game.Angle ≤ 112.5
    --Animate: (Walking upwards)

    ...
  • THRSTNTHRSTN Member Posts: 178
    thanks for the reply codemonkey ill give that a try and im lovin the pause feature so far
Sign In or Register to comment.