guy23's Forum Posts

  • 11 posts
  • Did some testing and I fixed it! My problem was having the WASD controls as "Pressed" instead of simply "Down"

    It's all working as it should now, thanks again Scofano and Rez for your help!

  • Alright, that did the trick for the directional Keys, Thanks.

    But still the same story for WASD, as in all dash and no regular movement. Would I have to mess around with custom controls or is there something I'm missing still?

    Edit: posting screencap for reference

  • I must admit to being lost on that one - I can surely add an event, but when it comes to adding OR operators with keyboard functions, I don't really know where to go from there.

  • Hmm, I noticed when I tried to implement it into my main project I still get the effect of the player dashing forward but from only one button press. This is when I'm using the WASD control scheme, with the Directional Buttons everything works as it should.

  • Hello,

    Thank you Scofano and Reza for your help! I managed to get it working now, all it needs is tweaking and proper implementation. I've uploaded the file incase anyone else would like to see how it can be done

    drop box com/s/vm7l77q6655zry4/Working%20Dash.capx

  • HI Scofano, I tested the link. Just need to remove the spacing and it should be alright. Thanks again.

  • Drop box.com/s/68k9e0uhm709u0i/Example%202.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello Scofano, and thanks again for the help.

    I experimented with your example a bit to see how it'd work on 8-Directional movement. Hortizontal movement now works perfectly, for vertical movement I made a new global variable just for that. I can get the ship moving upwards but when i do downwards it just keeps going up. Perhaps there's something I'm missing here. I uploaded the file since that'd do better explaining than I could.

  • Thanks Sofano, although my game is a topdown shooter your example did help me get an understanding of what to work towards. Though, my player gets stuck to the sides of the map and cant move normally when I apply your code into the basic 8 move functions. On a sidenote my monsters also seem to have lost interest in the player, lol.

  • Thanks reza for the response. Though I'm having some trouble implementing it. I have a global variable called "CanDash" that's set to 1 once the player presses the relevant button, and I just recently switched over to a local variable. But I cannot get to any point where I can set the keyboard to be pressed again for that function. I've tried the "While" condition under system, but I get nothing.

  • Hello folks,

    I'm trying to make it so my player will dash in the direction of the key if it's pressed twice. For example you tap W twice and the player will dash upward. I've looked around but I've found no confirmed methods or the demo files were simply lost. What do you think is the best way to go about this?

    Thanks.

  • 11 posts