sabrinastuckless's Recent Forum Activity

  • This really helped, thank you so much dop2000 and oosyrag; the jittering has stopped, I ended up doing two conditions [pseudo code: System - distance(player,mouse) > 50 and < 50 ... with the > I have player enable bullet and set angle of motion to the mouse, and with the < I have player disable the bullet behaviour] ... but it feels really clunky still.. I am now having an issue with the speed seeming to increase over time and my collisions are wonky (sorry about all the technical jargon xD) - but that could be due to a "jump" command I have configured which is extremely clunky, at best.

    Should I be using dt to calculate speed with the bullet behaviour in my event sheet or would setting the speed to 20 using the behaviours section in the properties panel suffice?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi! First time poster, so I apologize if my formatting is a bit off - been using Construct 3 for about 2 and a half months now; long story short, I'm making a vertical scroller/runner/shooter game for a client and after making it with 8-directional controls, he now wants the player to follow the mouse for directional control...

    I have accomplished that with a bullet behaviour and having the angle of motion calculated towards the mouse with every tick, however when the 'player' reaches the mouse it jitters. I tried to compare if the mouse was +- 50 pixels from the player and only set the angle of motion to the mouse if it is outside of that range.. I am assuming that's the issue anyways.

    [

    pseudo code: System > Compare mouse.x not equal player.x +- 50 AND System > Compare mouse.y not equal player.y +- 50 >> player bullet behaviour set angle of motion to angle(player.x,player.y,mouse.x,mouse,.y)]

    I have only actually been "coding" for maybe 3-4 months, too, so I may not be using the right terms and expressions as well.. or going about this in a really clunky way lol.

    One other tidbit, the player is a spriter object (using the plugin) pinned to a sprite because I had to use spriter for some animations and the sprite object for some collision detection and movement controls.

    Please let me know if there is any more information I can provide to help you help me xD

sabrinastuckless's avatar

sabrinastuckless

Member since 30 Dec, 2019

None one is following sabrinastuckless yet!

Trophy Case

  • 4-Year Club
  • Email Verified

Progress

5/44
How to earn trophies