Andy Gilbert Posted July 4, 2013 Share Posted July 4, 2013 Im trying to "toggle" a variable using a key and using keyDown works but obviosuly this makes it hard to toggle as it repeats while the key is down. So i tryed using keyHit and for some reason getting strange results, such as it not doing anything. So i tryed drawing the variable to the screen, and when i do, the number seems to "overwrite" itsself?? Yet using keyDown doesnt do this. Am i doing something wrong? EDIT: What ive noticed is, if i attatch tell it to "move" an object with each keyHit, its very "on/off" MORE off, it never seems to work and then suddly it will, but the nubmer being drawn changes with every hit. This is in the Update world function Thanks Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.