Topic:   Platformer   (Read 13037 times)


0 Members and 1 Guest are viewing this topic.

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Platformer
« on: December 26, 2010, 05:11:19 PM »
Hey, Is there any way GM can make a platformer (Preferably scrolling type)? I just thought a GM platformer would be fun to make.
-zoo
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: Platformer
« Reply #1 on: December 28, 2010, 12:27:40 AM »
You mean when you move the whole screen moves, instead of just you?
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Re: Platformer
« Reply #2 on: December 28, 2010, 11:14:02 AM »
yeah.
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Platformer
« Reply #3 on: December 28, 2010, 02:58:23 PM »
It's possible, but it's never really been done as far as I recall. I might try to cook something up myself.
I survived the spammage of 2007

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: Platformer
« Reply #4 on: December 28, 2010, 11:47:47 PM »
Never really been done? I might have to try and make one later, I had some ideas as to how to set it up.
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: Platformer
« Reply #5 on: December 29, 2010, 10:27:03 AM »
Its quite simple you just have the map move the opposite direction as much as you would move the man and leave the man in the center. If you have a very large map however it will get quite laggy. Especially if you have more sprites on the screen.
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

GabrielCA


  • GMG-er

  • **

  • no avatar

  • Posts: 224
Re: Platformer
« Reply #6 on: December 29, 2010, 11:22:03 AM »
Wasn't there a platformer demo with the old version of SC ?

Perhaps for a GM platformer you could scroll the screen its whole length when you reach the edge
Creator of the deprecated plugin KeyDetect (2005)

Gnome


  • GMG Extraordinaire

  • ***


  • Posts: 1073
Re: Platformer
« Reply #7 on: December 29, 2010, 03:32:09 PM »
You guys are killing me! Just check the Tutorials on the GMG.
This Cannot be, NOOOOOOOO!!!!

-Gnomes Cry when the McRib was discontinued again.

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Re: Platformer
« Reply #8 on: January 01, 2011, 01:26:15 PM »
oh, you mean the "physics and platformer demo"? That doesn't work.
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

EqwanoX


  • Administrator

  • GMG Extraordinaire

  • *****


  • Posts: 1180
Re: Platformer
« Reply #9 on: January 01, 2011, 01:33:01 PM »
you would have to find a way to determine hit detection with with the platforms, so i think the easiest way would be to have the platforms as sprites and set a "hot spot" for each side of the player sprite to determine what side is touching an obstacle  and stop movement in that direction by moveing the sprite to the edge of the platform its touching depending on what hot spot its collideing with. then you would have a gravity variable pulling the player sprite at every timer loop. so it seems possible but i dont think it would be very versitile for a game, might make a good mini game though
« Last Edit: January 01, 2011, 01:33:52 PM by EqwanoX »

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: Platformer
« Reply #10 on: January 03, 2011, 10:58:10 AM »
Oh I think with some work you could make it work fine. Here's one idea:
See if the player will collide with each block based on where he's about to move. For example if he's falling check to see if the bottom edge of the sprite will overlap any blocks (based on the speed) and if it will then set it's height to the top of that block. That way he won't overlap it for 1 frame.
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

x


  • GMG-er

  • **


  • Posts: 247
Re: Platformer
« Reply #11 on: January 03, 2011, 06:54:34 PM »
I made an engine for one in GM a long time ago.

EDIT: Found it, http://www.gamemakersgarage.com/index.php?cat=articles&id=7
« Last Edit: January 03, 2011, 07:07:14 PM by x »

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Re: Platformer
« Reply #12 on: January 07, 2011, 04:03:31 PM »
Yeah, I know, but it doesn't seem to work.
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

x


  • GMG-er

  • **


  • Posts: 247
Re: Platformer
« Reply #13 on: January 07, 2011, 06:53:20 PM »
Quote
Yeah, I know, but it doesn't seem to work.

Elaborate.

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: Platformer
« Reply #14 on: January 08, 2011, 07:56:58 AM »
Quote
Yeah, I know, but it doesn't seem to work.

In the "Begin Demo" button script in card 1, change:
ON TIMER 0
to
ON TIMER 1

It would probably run faster if you rewrote it to be in the card script using the "Loop Script" option instead of the TIMER.

The keys to move are:
A = left
D = right
W = jump

« Last Edit: January 08, 2011, 08:03:31 AM by AlStaffieri »