Be a Supporter!

How to create a platform game?

  • 432 Views
  • 4 Replies
New Topic Respond to this Topic
Tecnologicomarplayer
Tecnologicomarplayer
  • Member since: Mar. 3, 2008
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
How to create a platform game? 2010-01-02 02:52:58 Reply

I'm working in a great platform game, I have all the graphics already made, but I don't know so much about programming this type of game.

Help me, please.

HonterGames
HonterGames
  • Member since: Jun. 18, 2009
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to How to create a platform game? 2010-01-02 03:01:33 Reply

There are some really nice platformer tutorials here:

NG Tutorials

GL


BBS Signature
flashMan
flashMan
  • Member since: Aug. 24, 2009
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to How to create a platform game? 2010-01-02 03:19:38 Reply

how come with the "while code" the y variable goes ++;

because eventually shouldn't _y variable stop hitting the ground? And isnt that the opposite of what you want

Nayhan
Nayhan
  • Member since: Sep. 8, 2006
  • Offline.
Forum Stats
Member
Level 23
Blank Slate
Response to How to create a platform game? 2010-01-02 03:51:30 Reply

At 1/2/10 03:19 AM, cheese123 wrote: how come with the "while code" the y variable goes ++;
because eventually shouldn't _y variable stop hitting the ground? And isnt that the opposite of what you want

in the while code the y variable should be told to -- so while he's touching the ground he moves upwards. ++ would make him go further down. example:

while (_root.ground.hitTest(_root.char._x, _root.char._y, true)) {
     _root.char._y--;
}

don't be late | Collab101 | Australian Users List | Nayhan's actionScript examples > click

Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to How to create a platform game? 2010-01-02 05:26:44 Reply

At 1/2/10 03:51 AM, Nayhan wrote: while (_root.ground.hitTest(_root.char._x, _root.char._y, true)) {
_root.char._y--;
}

While codes honestly shouldnt be thrown around like that , theyre supposed to be used to handle short functions like placing enimies in one frame or something also that code really hasnt been thought out because its constantly causing the player to ruise and fall

I do not recommend using the NG platformer tutorials , theyre very messy

Vcams
Bad collision
AS2
MC coding

Really shitty stuff , i suggest learning basic AS3 (Or AS2 if you MUST) then compiling a library of functions and classes to build youre game with


nobody