Automatic place char. into keyboard buffer?

Blitz3D Forums/Blitz3D Beginners Area/Automatic place char. into keyboard buffer?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Jams you forgot to say what function "pushkeybordbuffer()" does, and the first

If KeyDown( KEY_UP )
Player\Y = Player\Y -1
Endif

doesn't make sense since you have that function "PlayerMoveUp" unless I misunderstood something.

However, it may be most simple if you add a second valid condition like

if ((keydown(Key_UP)) and (demo=0))   or   ((k(c)=KEY_UP) and (demo=1))

where k(c) is a value taken from a file or array.

Plus: I totally agree, with your second point. Also consider that keydown cannot be replaced by "inserted virtual keyhits" and keydown allows multiple keys to be pressed simultanously.