ID:827272
 
(See the best response by DarkCampainger.)
Code:
client
East()
..()
if(usr.Player1Joined ==1)
east()
if(usr.Player2Joined ==1)
eastP2()

West()
..()
if(usr.Player1Joined ==1)
west()
if(usr.Player2Joined ==1)
westP2()

South()
..()
if(usr.Player1Joined ==1)
south()
if(usr.Player2Joined ==1)
southP2()

North()
if(usr.Player1Joined ==1)
north()
if(usr.Player2Joined ==1)
northP2()


I'm looking for a simple code example to learn from to assign keyboards keys to do tasks/procs. Currently I have it so players can move a screen hud cursor; select what they want and then also be able to use those keys to move their mob in the game. The code seems to be overlapping and causing it to randomly work some of the time. I'd like an example, to learn from that is more easier to grasp then Side Scroller Demo if possible. :

Best response
You're calling the default action (that's what ..() does), which is also to move the mob.

I'm not sure what you're doing with the Player1Joined/Player2Joined variables, you should just use client.mob to determine which mob the client controls.

Anyways, you assign keyboard keys to verbs. You can do that in the interface editor, through macros.