welcome, your code seem to work, did have to join a line together but that may have been your posting
sync on
sync rate 60
autocam off
position camera 0, 0, 0, -5
make object cube 2, 1
make object cube 3, 1
make object cube 4, 1
position object 2, -2, 0, 0
position object 3, 0, 0, 0
position object 4, 2, 0, 0
do
keystroke = scancode()
if keystroke>1 AND keystroke<=4
yrotate object keystroke,object angle y(keystroke) + keystroke*0.1
endif
text 1, 1, str$(keystroke)
sync
loop
could not help it added a line to make them rotate the other way if you press the shift key.
sync on
sync rate 60
autocam off
position camera 0, 0, 0, -5
make object cube 2, 1
make object cube 3, 1
make object cube 4, 1
position object 2, -2, 0, 0
position object 3, 0, 0, 0
position object 4, 2, 0, 0
do
keystroke = scancode()
if keystroke>1 AND keystroke<=4
if shiftkey()=1
yrotate object keystroke,object angle y(keystroke) - keystroke*0.1
else
yrotate object keystroke,object angle y(keystroke) + keystroke*0.1
endif
endif
text 1, 1, str$(keystroke)
sync
loop
Dark Physics makes any hot drink go cold.