Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

Click here to join us on IRC (#charas on irc.freenode.net)!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Making a Real Jumping System Like IN Mario Move in air while falling and such
« previous next »
  • Print
Pages: [1]

Author Topic: Making a Real Jumping System Like IN Mario Move in air while falling and such  (Read 3643 times)

Offline the_game_guy

  • Initiate
  • *
  • Posts: 13
Making a Real Jumping System Like IN Mario Move in air while falling and such
« on: August 04, 2008, 08:33:59 AM »
Ok so you'll need a few things, first have a chipset with at least 2 blank tiles that are the transparent color. And have 2 terrains. Number 1 Called Jump and 2 called Fall/move. When that is done. Make a map that is 20x15 and the bottom row has to be covered in the terrain 1 aka jump transparent color. Then make the rest of the map and make it terrain 2. Now go to Databse and Common Events and make 4 of them. One called
1 Jump Parallel Process Switch Jump
2 Fall Parallel Process Switch Fall
3 Fall Part 2 Parallel Process No Switch
4 Terrain Parallel Process No Switch
1 enter this stuff in.
Code: [Select]
Key Input Proc::[xxxx::Jump](For this tutorial set the button to Spacebar and make sure the Wait Until Key is Pressed is off)
Loop
Wait 0.1 Sec
Branch If Var[xxxx::Jump] is 5
  Key Input[xxxx::Left/Right](Make Sure Left and Right Arrows are on and everything else off including wait for key to be pressed)
  Branch If Var[xxxx::Left/Right] is 2
    Move Event Hero::Move Up/left Up/left Up/left
  else
     Branch if Var[xxxx::Left/Right] is 3
       Move Event Hero::Move Up/right Up/right Up/right
     else
       Branch if Var[xxxx::Left/right] is 0
          Move event hero::Move Up Move Up Move Up
       end
  end
SwitchOper::[xxxx::Fall]On
SwitchOper::[xxxx::Jump]Off
end
End Loop

Oh and yes this will allow you to move in air while you fall. Now onto Fall Part 1

Branch if Var[xxxx::Hero Terrain] is 1
  SwitchOper[xxxx::Fall]Off
  SwitchOper[xxxx::Jump]On
else
  Key Input Proc[xxxx::Left/Right](Make it the same as the other key input that has Left/right)
   Branch If Var[xxxx::Left/Right] is 2
    Move Event Hero::Move Down/left Down/left Down/left
  else
     Branch if Var[xxxx::Left/Right] is 3
       Move Event Hero::Move Dwon/right Dwon/right Down/right
     else
       Branch if Var[xxxx::Left/right] is 0
          Move event hero::Move Down Move Down Move Down
       end
  end
end

Ok hopefully you have everything so far. Now Fall part 2 is necessary in order to jump your highest. With out it you would only jump 1 square
Ok time for Fall Part 2. Its exactly the same except no switch to turn it on and it has a proceed with movement. so enter this now

Branch if Var[xxxx::Hero Terrain] is 1
  SwitchOper[xxxx::Fall]Off
  SwitchOper[xxxx::Jump]On
else
  Proceed With Movement
  Key Input Proc[xxxx::Left/Right](Make it the same as the other key input that has Left/right)
   Branch If Var[xxxx::Left/Right] is 2
    Move Event Hero::Move Down/left Down/left Down/left
  else
     Branch if Var[xxxx::Left/Right] is 3
       Move Event Hero::Move Dwon/right Dwon/right Down/right
     else
       Branch if Var[xxxx::Left/right] is 0
          Move event hero::Move Down Move Down Move Down
       end
  end
end

Now for terrain because without this one, None of this would work at all

Loop
wait 0.1 Sec
Store Terrain ID in [xxxx::Hero X](For hero x slot)[xxxx::HeroY(For hero Y slot) and Store terrain in [xxxx::Hero Terrain]
End Loop

Now if you did exactly what I just typed. you'll be able to make your own mario game. Oh and this did take me awhile to make and from what I saw on the internet, no one has made a tutorial like this and I hope it put to good use. My party changing tutorial got delayed because my computer crashed so I had to repair it and now i am working on it now. So remember you need a chipset with 2 empty squares that are the transperent color, Make square 1 the terrain 1 which should be called Jump then square 2 should have terrain 2 called fall. Make sure you have all 4 common events that are parallel and the map's bottom row needs to be all covered with terrain 1 square. Make sure you input the following switch for the events. Jump Switch Jump Fall Switch Fall Fall pt 2 no switch and terrain no switch. Oh make an autorun event that turns on the jump switch. Like i said if you do exactly as instructed it should work. And enjoy this long and grewling coded tutorial that took me 2 hours to make because of slow lagging and not jumping the right height and other things that almost made me break my computer so enjoy ;D
EDIT::Put it into a code box so its easier to read now.
« Last Edit: August 04, 2008, 11:32:08 PM by the_game_guy »
Logged

Offline Fisherson

  • Jedi Sentinel of the Charasian Cluster.
  • Royal
  • *
  • Posts: 4,200
  • Just call me Fish.
Re: Making a Real Jumping System Like IN Mario Move in air while falling and such
« Reply #1 on: August 04, 2008, 01:58:00 PM »
Whoa,thats pretty cool.Did you get your info from Rm totourials?
Logged

Offline Meiscool-2

  • Sage
  • *
  • Posts: 7,030
  • If you support n00bs, you support communism.
Re: Making a Real Jumping System Like IN Mario Move in air while falling and such
« Reply #2 on: August 04, 2008, 03:57:26 PM »
Very nice. I've often wondered how platformers were made on RM.
Logged
Most Recent:

________________________
Old Stuff:

Offline Red Fox

  • All men play on ten!
  • Leader
  • *
  • Posts: 2,034
Re: Making a Real Jumping System Like IN Mario Move in air while falling and such
« Reply #3 on: August 04, 2008, 04:59:41 PM »
Looks good. I have to try it out sometime.
Logged
Your signature was awful, too. What the hell were you thinking?

Offline Archem

  • One, one too many schizophrenic tendancies
  • Global Moderator
  • Over 9000!
  • *
  • Posts: 15,013
  • I made a fortune in toothpicks, but I lost it all in a fire.
Re: Making a Real Jumping System Like IN Mario Move in air while falling and such
« Reply #4 on: August 04, 2008, 06:44:02 PM »
Good dandy! That's fantastic!
Logged

Offline the_game_guy

  • Initiate
  • *
  • Posts: 13
Re: Making a Real Jumping System Like IN Mario Move in air while falling and such
« Reply #5 on: August 04, 2008, 06:53:32 PM »
Hey thanks for the comments guys. I made this tutorial myself. This formula as I call it, was made by me and I didn't see it anywhere else. So I decided to make it myself and here it is! I hope the instructions weren't too confusing and if so, I'll make a demo of it if anything. It took me a couple of hours to make it because when the Wait Until Key is pressed is on it lags up the system and doesn't work that well so we use branches and turn off the wait key press. So Yes I made it myself and I am glad you guys like it.
Logged

Offline A Forgotten Legend

  • Your neighborhood box of colors
  • Royal
  • *
  • Posts: 4,428
    • Website
Re: Making a Real Jumping System Like IN Mario Move in air while falling and such
« Reply #6 on: August 04, 2008, 08:31:39 PM »
Try putting it in the [code][/code] code.  It'll make it easier to read.
Logged

Offline Dominicy

  • All men play on ten!
  • Leader
  • *
  • Posts: 2,852
Re: Making a Real Jumping System Like IN Mario Move in air while falling and such
« Reply #7 on: August 05, 2008, 05:20:10 AM »
It's so simple... Why don't people figure this out any sooner!?  XD  This actually makes me want to make Spire 2 a platformer..
Logged

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Making a Real Jumping System Like IN Mario Move in air while falling and such
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum