snowfox54119's Forum Posts

  • 4 posts
  • Thank you sooo much for your help!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ah, I see. Well maybe I'm misunderstanding what I did, but I thought I was comparing to the angle towards earth. How would what you recommend, 99Instances2Go, look different from how I entered in the code?

  • Here you go! Finally got the link working

    dropbox.com/sh/lpnx1e3uip1y93j/AABLqBLAgq7rGik9GPHNC9qra

  • So I'm trying to create a gravity based shooter that uses the keyboard to move, and the mouse to aim and shoot. I've set up the sprites so that the gun and arm of the player follow the mouse.

    I then set the player animations to be based off of the relative position of the player to the mouse. Ex: If you're running left, but shooting right, the right animation will continue to play while you move left, since the mouse has a greater x/y then the player. So here's the code that I used to make this happen.

    However, the issue I'm running into is that there's one spot where the function gets thrown off. Everything works perfectly around the planet until the player hits this section, and then the animations suddenly get flipped. I'm assuming this is because the x/y of the mouse in this specific spot, but I have no idea how to fix it. I'm extremely new to coding thing, so I would immensely appreciate any help or advice you guys can offer!

    I can also send the file if you need it (as I can't figure out how to post the link to the dropbox file.

  • 4 posts