i need to make a shift to sprint script but i dont know how. PlayCanvas | HTML5 Game Engine
What is the movement code you have? If your using the tutorial code i can do it for you
All you have to do is add me as an editor to the project and ill do it sometime today~tomorrow
main tutorial
whats ur username?
@oofin
added
Im sorry to bother you, but the shift to sprint is not working at all. I see you added it but its not working. when i press shift it does nothing
// sprinting
if (app.keyboard.isPressed(pc.KEY_SHIFT)) {
this.playerrunning = true;
}
// sprinting
if (this.playerrunning) {
power = this.powerRunning;
}
‘’’
Im looking at this but i dont see anything wrong.
Idk, i used this on every single game i have, but it doesn’t work on yours somehow
Ill check it out.