View Single Post
chandie

JCF Member

Joined: Jan 1970

Posts: 19

chandie has disabled reputation

Mar 19, 2020, 03:00 AM
chandie is offline
Reply With Quote
I am trying to increase/decrease the player's x speed like this:
if(p.keyRight)
p.xSpeed = 20;

It works with void onPlayer but not in bool onObjectHit or void onFunction Any suggestions?