nunuStudio icon indicating copy to clipboard operation
nunuStudio copied to clipboard

Keyboard and Mouse input

Open CaioWillianMoreira opened this issue 2 years ago • 2 comments

Problemas no Keyboard and Mouse input

Description
  • Ao apertar "stop" as funções de "Keyboard e Mouse" não estão funcionando corretamente.
function update() {
self.rotation.y += Mouse.delta.x * 0.01;
if(Keyboard.keyPressed(Keyboard.LEFT)) {
	self.position.x -= 0.1;
}
if(Keyboard.keyPressed(Keyboard.RIGHT)) {
	self.position.x += 0.1;
}
}
  • Platform

Web.

CaioWillianMoreira avatar Mar 07 '22 02:03 CaioWillianMoreira

Hello

The code seems to be correct can you share a nsp file so that i can test the code?

Thanks a lot!

tentone avatar Mar 08 '22 09:03 tentone

Hello, you can look at my example in this repository. build 0.9.4 (linux) is working perfectly. however the current version 0.98.30 has problems when running and pausing the engine.

https://github.com/CaioWillianMoreira/nunuStudio

CaioWillianMoreira avatar Apr 14 '22 20:04 CaioWillianMoreira