recoil

  1. Elkrom

    GMS 2 Help with enemy knockback

    hello I am trying to fix this knock-back effect on my enemy instances that I've implemented , basically using recycled code that i already had from a recoil effect from shaun spalding's platformer series (which I'm starting to think might not be the best way), and its kind of working but it...
  2. T

    GML What is the best way to model recoil climb in in my platformer?

    Alright, I'm in the very very early stages of working on a platformer with mouse aim. It uses the standard kind of system where a separate arm object rotates around the player's shoulder with an image angle that follows the cursor. For a handful of design reasons, I really don't want to use an...
  3. S

    GMS 2 my collision/anti-stuck is not working

    I wanted to add recoil as a rocket jump but the recoil sends me into walls. This is my code is there anything wrong with it? //playerinput key_left = keyboard_check(ord("a")); key_right = keyboard_check(ord("d")); key_jump = keyboard_check_pressed(vk_space) //interpret movement var move =...
  4. M

    [SOLVED] Problem with vertical collisions on knockback

    This is driving me crazy. In my game (sidescroller shooter) the gun can shoot 360º, and I added some knockback (if you shoot, you get knocked back in the opposite direction). The problem is that horizontal collision it's working just fine, but vertical collision no. Either I pass through the...
  5. Gamerev147

    Legacy GM Top Down Recoil

    Hello! I have a few questions about a recoil system that I want to implement. Here is a diagram of what I want to happen. More explanation and code is written below the diagram. Ok so when the player fires, i want the sprite to either snap a few pixels right, left, up, or down depending on...
  6. XirmiX

    Legacy GM Transfer local impulse or force

    I belive I've made a thread about this before, although I did not get any help there really and it seems like it was a tough nut to really comprehend. I'm talking in terms of recoil and impact force which get applied by shot projectiles at a target or basically an enemy or yourself. Obviously...
  7. XirmiX

    Legacy GM Physics based recoil?

    I've been trying to set up a recoil for when I shoot a projectile for my game. The game is physics based and currently the projectile, after being spawned in will trigger an alarm, which will occur after 1 frame upon it being spawned. Within the alarm is the following code: with(obj_hull) {...
Top