Master Sonic Engine By JMIDEV - Original game (Sonic 1) by SEGA and AncientGames

You're viewing a single comment in a conversation. View all the comments
  • 3 Comments

  • Order by
  • excellent work!! ... please help me if you can! ... in my project I need the same "knockback effect" for the damage Sonic takes. In my project, when the player collides with an enemy the player does the "Flashing" and "Knockback", but for some unknown reason, if my player ends his "flashing" while colliding with the enemy and at the same time I make movements like "W_A_S_D" or "shooting" (without ceasing to collide the player with the enemy) the program generates a bug and my player is paralyzed. I made this same attempt in your game causing Sonic to get damaged with the spines and I stayed on them while doing "flashing" and I kept making movements right there until I became "beatable" again and in effect what I want to generate works in your game ... could you show and explain me your code please? ... thanks in advance dude!

    • What I did is that when I get hurt, the player input is disabled, the flashing is activated, the player gets a negative Vector X and Vector Y, so that the user cannot cancel the backward impulse.

      Then what I do is that when the ground falls after the blow, the player input is activated again, and for several seconds the flashing is not deactivated.

      Thanks for the support ;)