Results 1 to 3 of 3

Thread: Mario Movement

  
  1. #1
    Stealth is offline -Hacks Newbie
    Join Date
    May 2006
    Posts
    9
    Rep Power
    0

    Default

    Can anyone help me to start off a game by giving me something like a left right movement just like on Mario, with platforms to jump on. Instead of left and right and x or something to jump could someone help me make L move left R move right L+R jump? I hope someone could help me with this just to get me started on my game..


  2. #2
    Bronx is offline -Hacks Newbie
    Join Date
    Jul 2006
    Posts
    2
    Rep Power
    0

    Default

    well:

    player = {}
    player.x = 0
    player.y = 0

    controls.read()

    if pad:right() then
    player.x = player.x + 1
    end

    if pad:left() then
    player.x = player.x - 1
    end

    thats its put really simple. I could show a jump function, but it may be too advance if you don't know something simple as this. and if you want the shoulder button to move the player then just replace the "left" and "right" part with the shoulder buttons.

  3. #3
    boomhowza is offline -Hacks Smarty
    Join Date
    Jul 2006
    Location
    Australia
    Posts
    149
    Rep Power
    14

    Default

    hey can you post ze jump option

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •