Home > other >  Cocos creator touchstart callback function how to last?
Cocos creator touchstart callback function how to last?

Time:09-29

Finger on, sustainable mobility characters,

CodePudding user response:

With a switch variables, such as this. The open
Loosen the turn it off, the code in the update

CodePudding user response:

 update (dt: number) {
//get the velocity vector dir. The normalize (). The mul (your movement speed)
//then setPosition
}
  • Related