This engine is allot like XNA and uses the same work style but this engine is used for making RPG/Sandbox like games.

Report RSS How to Move Your Image

This tutorial will teach you how to move images based on our KeyDown event.

Posted by on - Basic Client Side Coding

when moving images just add the below code.

// just add

protected override void KeyDown()
{
    if(Key.W)
    {
        myimage.position.y--; 
    }
    // and so on
    base.KeyDown();
}

if we were to add/disable the player jumping just add

// enable jump

protected override void SpaceBarDown()
{
    myimage.jump(true);

    base.SpaceBarDown();
}

//disable jump

protected override void SpaceBarDown()
{
    myimage.jump(false);

    base.SpaceBarDown();
}
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: