Jump to content

strange keyHit problem?


Andy Gilbert
 Share

Recommended Posts

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

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...