My Game Keeps Glitching

Koda89Koda89 Member Posts: 275
edited November -1 in Working with GS (Mac)
I'm using the Tap Tap Runner template to make a ninja game and in addition to the jump button, I added a button to throw shurikens. However, every now and then the button doesn't work and the ninja doesn't shoot any shurikens. In addition to that, I changed to jump animation to a flipping jump like the 2D Ninja Gaiden and Metroid games, however, every now and then the animation freezes mid jump, so instead of landing on his feet, the ninja lands on his back or head, for example.

Anyone have any ideas?

Comments

  • Koda89Koda89 Member Posts: 275
    So no one has any ideas? :(

    I'm not gonna publish the game until I get these glitches figured out....
  • FatalCrestFatalCrest Member Posts: 113
    Can you explain how the functions work? Did you add other things to the template?
    It'll be easier to figure out if we know how your thing works. xD

    (Side Note: I don't have that template so...)
  • Koda89Koda89 Member Posts: 275
    The only other things I've done to the template is add a second button and created a shuriken actor.
  • wayneh001wayneh001 Member Posts: 300
    Koda89, just a couple of things to maybe double check.

    1. Jump Animation.
    a. Ensure the [Animation] is not set to loop.
    b. Check the [Restore Actor Attribute].
    c. Ensure the FPS fit in with the timing of the jump.

    2. Shoot Weapon.
    a. Create a NEW actor to follow the Characters X,Y positions
    b. Create a Boolean attribute to see if SHOOT button is pressed.
    c. Have the NEW Actor spawn the shoot object when flag set to TRUE.
    d. Try not to overload the rules within the main Character Actor -
    ie jumping, animation, shooting, spawning etc...

    I've created a revised [GS TapTap Runner V2] Template, which includes the above to demonstrate (Space to Jump, Return to Shoot) - also smoothed out the platforms appearing and disappearing.

    [GS TapTap Runner V2]
    http://gamesalad.com/game/play/64951

    If you're feeling less violent, i've upload a basic music product template (for a change of pace) [GS Instant Trax] - you don't have to worry about Ninjas or getting killed... :-)

    [GS Instant Trax]
    http://gamesalad.com/game/play/64885

    Wayne
  • Koda89Koda89 Member Posts: 275
    Ok, did everything you said to, Wayne, and it works for the most part, however there is a little lag on getting the secondary actor to follow the ninja. What I mean is, if I try to jump and shoot, the shurikens will spawn from where the ninja jumped from for about a second or two.

    And the spin jump still glitches now and then. But, it is getting there. :)
Sign In or Register to comment.