Jump to content


Photo
- - - - -

Math Based Platformer Engine [updated]


  • Please log in to reply
87 replies to this topic

#1 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 27 April 2009 - 05:49 PM

UPDATE: Links are fixed. and gravity points have been added. The friction system has been improved as well.
  • Title: Math Based Platformer Engine
  • Description: Perfect platformer physics without gm collisions or pixel checking
  • GM Version: GM 6, 7, and 8
  • Registered: No, works perfectly for lite
  • File Type: .exe .gmk .gm6
  • File Size: 2.2 MB 22.7 KB 19.7 KB
  • File Link : .exe .gmk .gm6
Additional Info
  • Portability: Does not rely on gm collision functions so it can be easily ported to other languages
  • Precision: As precise as a double, more precise than a pixel
  • Satisfaction: Everyone is satisfied except those who misunderstand something.
  • Features: Slopes, Conveyor Belts, Sliding, Multiplicative Friction, Traction, Wind, Water, Substances, Bounciness, Jumping
  • Extra Features: My accelerating/decelerating view system
  • Functions:
    • create_foothold (x1, y1, x2, y2)
      Creates a foothold connecting the 2 points. If the first point is to the left of the second point then the foothold is a floor, otherwise its a ceiling (but its all relative to gravity)
    • create_foothold_ext (x1, y1, x2, y2, friction, speed, traction)
      Same as previous but now you can specify the speed at which the platform shifts (like a conveyor belt) and also the friction of the foothold (so you can make different materials such as ice or rubber). traction is the threshold the player needs to get within his desired speed to gain traction.
    • create_substance (x1, y1, x2, y2, friction, speed, direction, jump, walk, priority)
      You can create a substance in the specified region with a friction as well as a wind/current speed and direction. You can also allow walking or jumping mid-substance. Only the highest priority substance where the player is gets used.
  • Constants:
    • ZERO - Modifies the precision of the engine. Only some things use this but be warned that if you set this too low the player may occasionally fall through walls and the game will freeze up if the player falls into narrow crevice.
    • GROUND_FRICTION - The default friction for a foothold.
    • GROUND_TRACTION - The default speed difference under which the player will gain traction and move directly in relation to the foothold without being influenced by gravity or other friction (unless they are greater than the traction).
    • GROUND_BOUNCE - Whether footholds bounce by default. Generally you'll just leave this at 0.
    • BOUNCE_THRESHOLD - The default amount of speed conserved when bouncing.
    • MAX_SPEED - The speed of the player.
    • SWIM_FORCE - The force with which the player swims up in swimmable substances (such as water).
    • JUMP_FORCE - The force with which the player jumps up.
    • GRAVITY - The force of gravity.
    • GRAVITY_DIRECTION - The direction in which gravity pulls you. If you change this into a global variable and edit it live time you can make the game world rotate.
  • How to use the example: You can edit the placement of the footholds in the creation code of the room. Footholds are 1 way so be careful the direction your foothold is in or you may accidentally fall through the floor. Feel free to edit the constants in the game settings.
Land of Quotes
  • "quite good." - Vadim647
  • "Very nice example." - daman123125
  • "This is a very good engine" - linx137520
  • "this is a pretty cool demo." - ChaosKnighT
  • "Wow...." - Schyler
  • "Excellent engine." - masterofhisowndomain
  • "Interesting engine idea, nice work." - Spaceoff
  • "pretty sweet engine." - hardcoregamer
  • "I honestly cannot wait to see more improvements to this engine. The updates all seem great, although I'll be damned if I knew how you implemented them." - masterofhisowndomain
  • "sweet job on this," - 11eromesburg
  • "This engine will be awesome for my new side scroller. thanks for making it. :) " - ydawg314
  • "Your engine overall is very, very good." - MitchGraham
  • "this is looking great and I'll be following, keep up the hard work!" - AsbestosBlatant
  • "Nice Job, very well done." - Caniac
  • "I've been waiting for this since you announced this. Bout to take it for a spin. :) " - ydawg314
  • "The updates are great, I can see this being very useful to someone trying to make a platformer. Physics and collisions work beautifully. Nice work!" - banov
  • "Now THAT is something. The platform engine is pretty nice. The air substances were nice:D." - sanassar
  • "Petenka you are doing great work! keep it up! :) " - ydawg314

Edited by petenka, 04 February 2010 - 03:58 PM.

  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#2 vadim647

vadim647

    Quite Epic

  • New Member
  • 840 posts

Posted 28 April 2009 - 09:00 PM

quite good. may use some optimizations to allow higher fps.
  • 0
We'll meet again, if you will find me.

#3 daman123125

daman123125

    AZN Game Programmer

  • GMC Member
  • 1957 posts
  • Version:GM8

Posted 29 April 2009 - 12:22 AM

Very nice example.

Couple flaws, though:
-the block has too little friction, making it hard to control.
-the block can go halfway through the walls.

I liked how there was no collisions involved, and how they were ghost platforms. :)
  • 0
Posted ImagePosted Image
Posted ImagePosted Image

Tuts/Examples: Ultimate Weapon Arsenal(AI included) | Wall-Jumping | Plasma Pistol/Rifle Overheating System | Cash Register Example | Two Objects In One View
PM me if one or more of my posted examples have a broken link.

#4 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 29 April 2009 - 02:22 PM

Very nice example.

Couple flaws, though:
-the block has too little friction, making it hard to control.
-the block can go halfway through the walls.

I liked how there was no collisions involved, and how they were ghost platforms. :)


Friction can be modified in the global game settings constants.
The block is only a sprite, the real collisions are handled with only a single point.
I'm going to update the engine soon with conveyor belt footholds and varying levels of friction and such.

EDIT: The update is done: *see topic for download links*
Go try it out, I added a new function create_foothold_ext to let you create conveyor belts.

Edited by petenka, 21 November 2009 - 06:26 AM.

  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#5 linx137520

linx137520

    Graphics Designer

  • New Member
  • 1284 posts

Posted 30 April 2009 - 05:34 PM

This is a very good engine, wouldnt reccomend it to new programmers though :whistle:.

If they want to actually learn.

Using it as an engine though it would be great :mellow:.

Edited by linx137520, 30 April 2009 - 05:39 PM.

  • 0
Posted ImageLinx~

#6 ChaosKnighT

ChaosKnighT

    GMC Member

  • New Member
  • 342 posts

Posted 01 May 2009 - 02:09 AM

You should make the player be able to go down slopes too. Right now, it looks like it's just falling down the slopes (and moving really slowly). Also, the speed of going up slopes should be checked: the overall speed increases when you go up slopes because you're not taking the y speed into account. The x speed when going up slopes should be something like cos(slopeAngle)*normalSpeed;

Otherwise, this is a pretty cool demo.
  • 0

#7 Schyler

Schyler

    Noskcirderf Derf

  • GMC Member
  • 2680 posts
  • Version:GM:Studio

Posted 01 May 2009 - 05:13 AM

Wow.... If the GMCG was a platformer, I would rewrite this. Some very nice ideas here.
  • 0

#8 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 01 May 2009 - 02:15 PM

You should make the player be able to go down slopes too. Right now, it looks like it's just falling down the slopes (and moving really slowly). Also, the speed of going up slopes should be checked: the overall speed increases when you go up slopes because you're not taking the y speed into account. The x speed when going up slopes should be something like cos(slopeAngle)*normalSpeed;

Otherwise, this is a pretty cool demo.


But I do include all those things.
Its just that...
Those slopes are conveyor belts!!!
Which is why landing on them takes you upwards.
If you modify the creation code of the room you can make them normal slopes or whatever.
  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#9 ChaosKnighT

ChaosKnighT

    GMC Member

  • New Member
  • 342 posts

Posted 01 May 2009 - 03:16 PM

You should make the player be able to go down slopes too. Right now, it looks like it's just falling down the slopes (and moving really slowly). Also, the speed of going up slopes should be checked: the overall speed increases when you go up slopes because you're not taking the y speed into account. The x speed when going up slopes should be something like cos(slopeAngle)*normalSpeed;

Otherwise, this is a pretty cool demo.


But I do include all those things.
Its just that...
Those slopes are conveyor belts!!!
Which is why landing on them takes you upwards.
If you modify the creation code of the room you can make them normal slopes or whatever.

gotcha! I totally didn't even notice :(
  • 0

#10 masterofhisowndomain

masterofhisowndomain

    The Designer

  • GMC Member
  • 3650 posts
  • Version:GM8.1

Posted 01 May 2009 - 04:52 PM

Excellent engine. Collisions seem just about perfect and with the optimisation you're planning this should run at a very decent speed. Can't wait to see how it's implemented in LOJ. :(
  • 0

List Of Mods And Add-Ons

(Things you must try, for the games you already have)

 

Insightful links:
Higher Order Fun -- Game Design, Maths.
The Missing Concept -- Career/Hobby?
Neither Career Nor Hobby -- Career/Hobby?
Wario Land 4 Project -- Platformer design.


#11 Spaceoff

Spaceoff

    Orbital Debris

  • GMC Member
  • 788 posts
  • Version:GM:Studio

Posted 01 May 2009 - 07:25 PM

Interesting engine idea, nice work.
  • 0

#12 theweirdn8

theweirdn8

    Unrivaled Legend

  • GMC Member
  • 4108 posts
  • Version:GM8.1

Posted 01 May 2009 - 07:34 PM

pretty sweet engine.
  • 0

[My milkshake brings all the boys to the yard]


2h2fg3c.png


#13 grumpymonkey

grumpymonkey

    GMC Member

  • GMC Member
  • 1011 posts

Posted 01 May 2009 - 07:56 PM

its ok, but you should be able to go up and down slopes.

btw you shouldnt really call it "math" based platformer since every game uses math. This is more like a alternative collision engine :o

still, this looks like it has some potential, 4/6. keep working on it :(
  • 0

Posted Image


#14 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 01 May 2009 - 08:03 PM

its ok, but you should be able to go up and down slopes.

btw you shouldnt really call it "math" based platformer since every game uses math. This is more like a alternative collision engine :o

still, this looks like it has some potential, 4/6. keep working on it :(


lets study that -2
-1 goes to bad name. I call it "math" based because it relies on actually calculating everything instead of just looping a bunch of gm collision calls to see how far you can move the player.
-1 goes to the fact you didn't realize those slopes are conveyors. (if you want to try out non-conveyor slopes then just edit the creation code of the room)
feel free to modify your rating after my study

Edited by petenka, 01 May 2009 - 08:38 PM.

  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#15 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 04 May 2009 - 03:04 PM

UPDATE:
Friction is now multiplicative.
There is now traction.
Here is the new download link...
*see topic for download links*

Also...
in my main topic with the function list why does a new line keep getting shoved in the word traction???
I keep editing it out but it keeps popping back in!!!

Edited by petenka, 21 November 2009 - 06:26 AM.

  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#16 masterofhisowndomain

masterofhisowndomain

    The Designer

  • GMC Member
  • 3650 posts
  • Version:GM8.1

Posted 04 May 2009 - 03:23 PM

I honestly cannot wait to see more improvements to this engine. The updates all seem great, although I'll be damned if I knew how you implemented them. Jumping whilst on/from the slopes seems very uncompromising though; I would have thought being able to push off from a surface would amplify the character's jump in the opposite direction, not compromise it.
  • 0

List Of Mods And Add-Ons

(Things you must try, for the games you already have)

 

Insightful links:
Higher Order Fun -- Game Design, Maths.
The Missing Concept -- Career/Hobby?
Neither Career Nor Hobby -- Career/Hobby?
Wario Land 4 Project -- Platformer design.


#17 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 04 May 2009 - 03:53 PM

This engine so far is just an engine, it seems no one is capable of understanding my code...
*Adds "lots of comments" to my todo list*
Perhaps I'll make it an option whether jumping off a foothold is relative to gravity or the foothold.
I'm also going to add an option whether or not you can change direction in air (i mean its not like there's anything to walk on in the air but some games like having it anyways).
There's going to be a lot of options eventually so everyone can customize the engine to suit their game.

Edited by petenka, 04 May 2009 - 03:57 PM.

  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#18 cata

cata

    GMC Member

  • New Member
  • 491 posts

Posted 04 May 2009 - 04:42 PM

Please convert it to Gm6 using lateral GM. I can convert it myself, but it gets very annoying to have to convert every single example I download using lgm because lgm is very slow.
  • 0
<If you are a Christian put this in your signature>

#19 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 05 May 2009 - 02:08 AM

your gm6 download is ready.
it works perfectly too.
*see topic for download links*
Enjoy.

Edited by petenka, 21 November 2009 - 06:27 AM.

  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#20 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • GMC Elder
  • 18181 posts
  • Version:GM:Studio

Posted 05 May 2009 - 02:14 AM

Why am I sliding up the slope (LOL)
  • 0

gmcbanner.pnggmcbanner_tools.png

ICU Live Tutoring Through Slack or Skype | My Tools Page follow.png

I FRANTICALLY MADE MY 18000 POST TOPIC BEFORE MIKE ANNOUNCED A DELAY...
Now I'm squirming not to hit that reply button


#21 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 05 May 2009 - 02:28 AM

Why am I sliding up the slope (LOL)


BECAUSE IT IS A CONVEYOR BELT!!!
How many times do I have to repeat myself?
I would appreciate it if someone made an example using my engine which had better graphics and indicated what each foothold was so people wouldn't ask such silly questions.
Or how about you learn to read?

Edited by petenka, 05 May 2009 - 02:55 AM.

  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#22 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • GMC Elder
  • 18181 posts
  • Version:GM:Studio

Posted 05 May 2009 - 03:10 AM

Oh, Perhapse if they looked like it. Here you go...

Download engine.gmk


I should have read the entire title and post...
  • 0

gmcbanner.pnggmcbanner_tools.png

ICU Live Tutoring Through Slack or Skype | My Tools Page follow.png

I FRANTICALLY MADE MY 18000 POST TOPIC BEFORE MIKE ANNOUNCED A DELAY...
Now I'm squirming not to hit that reply button


#23 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 05 May 2009 - 02:05 PM

Oh, Perhapse if they looked like it. Here you go...

Download engine.gmk


I should have read the entire title and post...


My engine is lite friendly.
I would love an example which is lite friendly.
Your example is not lite friendly.
I'm going to work on air next.
Wind, wind regions, various ways to accumulate wind, multiplicative air friction, etc.
  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#24 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • GMC Elder
  • 18181 posts
  • Version:GM:Studio

Posted 05 May 2009 - 07:11 PM

Pretty sure if you comment out the image_angle it'll work.


Cheers!
  • 0

gmcbanner.pnggmcbanner_tools.png

ICU Live Tutoring Through Slack or Skype | My Tools Page follow.png

I FRANTICALLY MADE MY 18000 POST TOPIC BEFORE MIKE ANNOUNCED A DELAY...
Now I'm squirming not to hit that reply button


#25 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 05 May 2009 - 07:29 PM

Pretty sure if you comment out the image_angle it'll work.


Cheers!


it's also the path stuff,
  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#26 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • GMC Elder
  • 18181 posts
  • Version:GM:Studio

Posted 05 May 2009 - 07:41 PM

Pretty sure if you comment out the image_angle it'll work.


Cheers!


it's also the path stuff,


Ah... what a shame...
  • 0

gmcbanner.pnggmcbanner_tools.png

ICU Live Tutoring Through Slack or Skype | My Tools Page follow.png

I FRANTICALLY MADE MY 18000 POST TOPIC BEFORE MIKE ANNOUNCED A DELAY...
Now I'm squirming not to hit that reply button


#27 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 05 May 2009 - 07:44 PM

Pretty sure if you comment out the image_angle it'll work.


Cheers!


it's also the path stuff,


Ah... what a shame...


i was thinking of more of just a single size/shape conveyor object with several animation frames to make it look like its rotating.

@everyone - Footholds can be created/destroyed at any time, so feel free to use your own map loading systems with this. you can have basic platform objects which in their create event automatically create a foothold in the same spot as them of the right dimensions. once you put in your own graphics for platforms you can delete the draw event from the foothold object as well. in fact the foothold object doesn't have any of its own code at all except for that draw event.
  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#28 11eromesburg

11eromesburg

    GMC Member

  • New Member
  • 9 posts

Posted 07 May 2009 - 12:50 AM

sweet job on this,
would use if i made a platform game.
:D
TEEHEE :huh:
  • 0

#29 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • GMC Elder
  • 18181 posts
  • Version:GM:Studio

Posted 07 May 2009 - 02:29 AM

i was thinking of more of just a single size/shape conveyor object with several animation frames to make it look like its rotating.


You would have to make a sprite for each different conveyor belt you made in the game, in your sample, you have 2 at different angles/direction. Let me fix my pathed version

Here you go. Hope sprite_get_width/height are not registered fns.

Download engine.gmk
  • 0

gmcbanner.pnggmcbanner_tools.png

ICU Live Tutoring Through Slack or Skype | My Tools Page follow.png

I FRANTICALLY MADE MY 18000 POST TOPIC BEFORE MIKE ANNOUNCED A DELAY...
Now I'm squirming not to hit that reply button


#30 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 07 May 2009 - 04:16 PM

i was thinking of more of just a single size/shape conveyor object with several animation frames to make it look like its rotating.


You would have to make a sprite for each different conveyor belt you made in the game, in your sample, you have 2 at different angles/direction. Let me fix my pathed version

Here you go. Hope sprite_get_width/height are not registered fns.

Download engine.gmk


it works.
and its good.
just keep updating your example whenever I update my engine :D
the second to bottom platform needs to look like ice by the way
Also the belt spins too fast.

Edited by petenka, 07 May 2009 - 05:26 PM.

  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#31 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • GMC Elder
  • 18181 posts
  • Version:GM:Studio

Posted 07 May 2009 - 07:04 PM

i was thinking of more of just a single size/shape conveyor object with several animation frames to make it look like its rotating.


You would have to make a sprite for each different conveyor belt you made in the game, in your sample, you have 2 at different angles/direction. Let me fix my pathed version

Here you go. Hope sprite_get_width/height are not registered fns.

Download engine.gmk


it works.
and its good.
just keep updating your example whenever I update my engine :D
the second to bottom platform needs to look like ice by the way
Also the belt spins too fast.


The belt spins too fast or The player skids, you figure it out. Hit the arrow in the direction of the movement and you'll see it's the same speed once the player stops skidding.
[Edit] Similar oddness, Walk up the left slope and release the arrow. Watch... Then hit the right arrow.

Floor ceilings and tiles, oh my!
Download engine.gmk

There you go. All yours now! I reduced the room speed to a normal value (60).

Edited by icuurd12b42, 07 May 2009 - 07:08 PM.

  • 0

gmcbanner.pnggmcbanner_tools.png

ICU Live Tutoring Through Slack or Skype | My Tools Page follow.png

I FRANTICALLY MADE MY 18000 POST TOPIC BEFORE MIKE ANNOUNCED A DELAY...
Now I'm squirming not to hit that reply button


#32 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 07 May 2009 - 07:17 PM

i was thinking of more of just a single size/shape conveyor object with several animation frames to make it look like its rotating.


You would have to make a sprite for each different conveyor belt you made in the game, in your sample, you have 2 at different angles/direction. Let me fix my pathed version

Here you go. Hope sprite_get_width/height are not registered fns.

Download engine.gmk


it works.
and its good.
just keep updating your example whenever I update my engine :D
the second to bottom platform needs to look like ice by the way
Also the belt spins too fast.


The belt spins too fast or The player skids, you figure it out. Hit the arrow in the direction of the movement and you'll see it's the same speed once the player stops skidding.
[Edit] Similar oddness, Walk up the left slope and release the arrow. Watch... Then hit the right arrow.

Floor ceilings and tiles, oh my!
Download engine.gmk

There you go. All yours now! I reduced the room speed to a normal value (60).


looks good.
increasing the friction seems to make the player stick to the conveyor better, but even after walking up the conveyor and then releasing, the conveyor is still a bit fast.
i think your code to calculate the speed has flawed trig.
  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#33 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • GMC Elder
  • 18181 posts
  • Version:GM:Studio

Posted 07 May 2009 - 07:18 PM

motion_set....
  • 0

gmcbanner.pnggmcbanner_tools.png

ICU Live Tutoring Through Slack or Skype | My Tools Page follow.png

I FRANTICALLY MADE MY 18000 POST TOPIC BEFORE MIKE ANNOUNCED A DELAY...
Now I'm squirming not to hit that reply button


#34 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 07 May 2009 - 07:20 PM

motion_set....


hmmm... odd...
i'll look into friction and sliding on normal non conveyor slopes and see if perhaps gravity bypasses traction...
  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#35 ydawg314

ydawg314

    GMC Member

  • New Member
  • 901 posts
  • Version:Unknown

Posted 07 May 2009 - 07:44 PM

If you want I can help you add some better graphics...
  • 0
Check out my newest game Redesigned from scratch!
Posted Image
Download Mobile Suit Grunt Wars.zip W.I.P 7-26
TEST YOUR MECH PILOTING SKILLS!!!
Spoiler

#36 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 07 May 2009 - 07:45 PM

If you want I can help you add some better graphics...


feel free to make all the amazing examples you want using my engine.
i'll compile a list on the main topic...
however the engine itself will remain graphicless which just a basic rectangle and lines.
  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#37 ydawg314

ydawg314

    GMC Member

  • New Member
  • 901 posts
  • Version:Unknown

Posted 07 May 2009 - 07:53 PM

If you want I can help you add some better graphics...


feel free to make all the amazing examples you want using my engine.
i'll compile a list on the main topic...
however the engine itself will remain graphicless which just a basic rectangle and lines.


This engine will be awesome for my new side scroller. thanks for making it. :D
The only thing that might turn people off from it is that the demo seems kind of stiff.

Try and make it more fun. That will make people want to use it more. When I get some substantial work done on my game I will post it and say I used your engine. That might help.

Edited by ydawg314, 07 May 2009 - 07:54 PM.

  • 0
Check out my newest game Redesigned from scratch!
Posted Image
Download Mobile Suit Grunt Wars.zip W.I.P 7-26
TEST YOUR MECH PILOTING SKILLS!!!
Spoiler

#38 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 07 May 2009 - 08:01 PM

If you want I can help you add some better graphics...


feel free to make all the amazing examples you want using my engine.
i'll compile a list on the main topic...
however the engine itself will remain graphicless which just a basic rectangle and lines.


This engine will be awesome for my new side scroller. thanks for making it. :D
The only thing that might turn people off from it is that the demo seems kind of stiff.

Try and make it more fun. That will make people want to use it more. When I get some substantial work done on my game I will post it and say I used your engine. That might help.


I'm going to add bounciness, water, and wind to the engine soon so the engine will be even more powerful.
I'll try to make the example larger and demonstrate its capabilities better, eventually..
So far no one has learned from my engine yet, they've only praised or used it in their own games but no one has actually gone through my code and learned how i did it (unless they didn't reply about it)
  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#39 ydawg314

ydawg314

    GMC Member

  • New Member
  • 901 posts
  • Version:Unknown

Posted 07 May 2009 - 08:03 PM

If you want I can help you add some better graphics...


feel free to make all the amazing examples you want using my engine.
i'll compile a list on the main topic...
however the engine itself will remain graphicless which just a basic rectangle and lines.


This engine will be awesome for my new side scroller. thanks for making it. :D
The only thing that might turn people off from it is that the demo seems kind of stiff.

Try and make it more fun. That will make people want to use it more. When I get some substantial work done on my game I will post it and say I used your engine. That might help.


I'm going to add bounciness, water, and wind to the engine soon so the engine will be even more powerful.
I'll try to make the example larger and demonstrate its capabilities better, eventually..
So far no one has learned from my engine yet, they've only praised or used it in their own games but no one has actually gone through my code and learned how i did it (unless they didn't reply about it)


I am going through it right now actually. BTW You used constants? I hate to use those because I feel like they restrict me.
  • 0
Check out my newest game Redesigned from scratch!
Posted Image
Download Mobile Suit Grunt Wars.zip W.I.P 7-26
TEST YOUR MECH PILOTING SKILLS!!!
Spoiler

#40 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 07 May 2009 - 08:05 PM

If you want I can help you add some better graphics...


feel free to make all the amazing examples you want using my engine.
i'll compile a list on the main topic...
however the engine itself will remain graphicless which just a basic rectangle and lines.


This engine will be awesome for my new side scroller. thanks for making it. :D
The only thing that might turn people off from it is that the demo seems kind of stiff.

Try and make it more fun. That will make people want to use it more. When I get some substantial work done on my game I will post it and say I used your engine. That might help.


I'm going to add bounciness, water, and wind to the engine soon so the engine will be even more powerful.
I'll try to make the example larger and demonstrate its capabilities better, eventually..
So far no one has learned from my engine yet, they've only praised or used it in their own games but no one has actually gone through my code and learned how i did it (unless they didn't reply about it)


I am going through it right now actually. BTW You used constants? I hate to use those because I feel like they restrict me.


Feel free to replace them with global variables however they must be created and set BEFORE creating the character or any footholds.
  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#41 ydawg314

ydawg314

    GMC Member

  • New Member
  • 901 posts
  • Version:Unknown

Posted 07 May 2009 - 08:07 PM

Also COMMENTS PLEASE. I know you said it already though

Edited by ydawg314, 07 May 2009 - 08:07 PM.

  • 0
Check out my newest game Redesigned from scratch!
Posted Image
Download Mobile Suit Grunt Wars.zip W.I.P 7-26
TEST YOUR MECH PILOTING SKILLS!!!
Spoiler

#42 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 07 May 2009 - 08:09 PM

Also COMMENTS PLEASE. I know you said it already though


I'll add them once i have the time...
  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#43 ydawg314

ydawg314

    GMC Member

  • New Member
  • 901 posts
  • Version:Unknown

Posted 07 May 2009 - 08:19 PM

Also COMMENTS PLEASE. I know you said it already though


I'll add them once i have the time...


Add them before your next release. Its hard to work off of and evaluate something if you have no idea what it does. For example
What hell do all of these do lol?
slopeDirection = point_direction(x1,y1,x2,y2);
	slopeFriction = argument4;
	slopeSpeed = argument5;
	slopeTraction = argument6;

  • 0
Check out my newest game Redesigned from scratch!
Posted Image
Download Mobile Suit Grunt Wars.zip W.I.P 7-26
TEST YOUR MECH PILOTING SKILLS!!!
Spoiler

#44 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 08 May 2009 - 01:07 AM

Also COMMENTS PLEASE. I know you said it already though


I'll add them once i have the time...


Add them before your next release. Its hard to work off of and evaluate something if you have no idea what it does. For example
What hell do all of these do lol?
slopeDirection = point_direction(x1,y1,x2,y2);
	 slopeFriction = argument4;
	 slopeSpeed = argument5;
	 slopeTraction = argument6;


that's part of create_foothold_ext
it creates a foothold and sets the friction, the conveyor speed and the traction of that specific foothold to the arguments you specify when calling the function
  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#45 MitchGraham

MitchGraham

    GMC Member

  • Banned Users
  • 524 posts

Posted 08 May 2009 - 01:52 AM

Your about_zero script warms some strange spot in my heart.

Your engine overall is very, very good.

#46 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 08 May 2009 - 02:09 AM

Your about_zero script warms some strange spot in my heart.

Your engine overall is very, very good.


it (about_zero) is unused actually.
i'm going to delete it (the script) soon.

Edited by petenka, 08 May 2009 - 02:09 AM.

  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#47 MitchGraham

MitchGraham

    GMC Member

  • Banned Users
  • 524 posts

Posted 08 May 2009 - 02:18 AM

It's still quite a chuckle.

#48 ydawg314

ydawg314

    GMC Member

  • New Member
  • 901 posts
  • Version:Unknown

Posted 08 May 2009 - 08:17 PM

You should add a level editor
  • 0
Check out my newest game Redesigned from scratch!
Posted Image
Download Mobile Suit Grunt Wars.zip W.I.P 7-26
TEST YOUR MECH PILOTING SKILLS!!!
Spoiler

#49 MitchGraham

MitchGraham

    GMC Member

  • Banned Users
  • 524 posts

Posted 08 May 2009 - 10:02 PM

I'm afraid I have to agree, something like this would be well complemented with a level editor, which saves to ini files (to keep the lite functionality), and a level loading script.

#50 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • GMC Elder
  • 18181 posts
  • Version:GM:Studio

Posted 08 May 2009 - 10:24 PM

You should add a level editor


Alctually, all he needs is a set of nodes that will link to make the platforms... Like here


Download engine.gmk
  • 0

gmcbanner.pnggmcbanner_tools.png

ICU Live Tutoring Through Slack or Skype | My Tools Page follow.png

I FRANTICALLY MADE MY 18000 POST TOPIC BEFORE MIKE ANNOUNCED A DELAY...
Now I'm squirming not to hit that reply button