GMLscripts.com

Discuss and collaborate on GML scripts
Invert

You are not logged in.

#1 2010-06-06 01:42:37

Marchal_Mig12
Member
Registered: 2009-05-21
Posts: 75

True Physics Slopes. Engine Done, Optimising Time.

Hi everyone, here's is a 2 year long project of mine (not the whole thing but a part of it). I finally was able to add TRUE physics slopes to my game which is something I am really proud of. (by the way, do not release this engine anywhere else please.) First of all, notice the lack of comments (which I had no time to do really). I am posting this here to show a preview of what can be done. The goal is to optimize the engine. Ideally, I would like to make it faster (it is already fast thought).

Note that I am using vectors so it might be confusing for some of you...

I would also like to thanks Tepi, an excellent mathematician from the GMC who helped me out by giving me a few lines of code helping me handling vectors etc.

Here is the gmk: edm-games.com/PhysicsSlopes.gmk

UPDATE and GM7 version here:  http://edm-games.com/PhysicsSlopes_Gm7.gmk

Have fun (use the mouse to jump around).

Post your thoughts and suggestions as well as your improvements and findings.

Thanks.

P.S.- I will be posting a version with more commented codes later on as well as an evolution of the engine and why I have made things as they are right now (some of the things might confuse you a little).

Last edited by Marchal_Mig12 (2010-06-10 00:42:17)

Offline

#2 2010-06-09 16:43:10

xot
Administrator
Registered: 2007-08-18
Posts: 1,239

Re: True Physics Slopes. Engine Done, Optimising Time.

This is such an intriguing post, I really want to see your project. I don't yet have GM8 though. Can you post an executable that I can look at?

I guess I better register GM8 soon, I feel like I'm getting left behind. Next big pay day I'll do that, I'm just not sure when that will be.


Abusing forum power since 1986.

Offline

#3 2010-06-09 22:03:42

Joseph
Member
Registered: 2009-09-04
Posts: 14

Re: True Physics Slopes. Engine Done, Optimising Time.

pretty nice.  didn't really look at the code because I'm in no way qualified to figure it out but it worked nicely and ran at about 800 fps (capped at 999)

Offline

#4 2010-06-09 22:42:53

xot
Administrator
Registered: 2007-08-18
Posts: 1,239

Re: True Physics Slopes. Engine Done, Optimising Time.

I attempted to convert it to GM7, but I'm not sure if it's working right. Is the Player/Ball supposed to roll or slide down slopes, or is it supposed to have enough friction to stop itself?


Abusing forum power since 1986.

Offline

#5 2010-06-10 00:33:41

Marchal_Mig12
Member
Registered: 2009-05-21
Posts: 75

Re: True Physics Slopes. Engine Done, Optimising Time.

I converted it. Here's the new version (gm7): http://edm-games.com/PhysicsSlopes_Gm7.gmk It willl work hopefully. And yes there is supposed to have enough friction to stop the ball.

This new version has slightly less codes (I deleted useless stuff in it).

EDIT:My code lacks comment. Please don't complain about something you don't understand but ask me smile.

Last edited by Marchal_Mig12 (2010-06-10 00:48:30)

Offline

#6 2010-06-22 19:38:19

Marchal_Mig12
Member
Registered: 2009-05-21
Posts: 75

Re: True Physics Slopes. Engine Done, Optimising Time.

Any thoughts?

Offline

#7 2010-12-28 13:31:50

brac37
Member
Registered: 2010-02-12
Posts: 18

Re: True Physics Slopes. Engine Done, Optimising Time.

xot wrote:

This is such an intriguing post, I really want to see your project. I don't yet have GM8 though. Can you post an executable that I can look at?

I guess I better register GM8 soon, I feel like I'm getting left behind. Next big pay day I'll do that, I'm just not sure when that will be.

You should get it for free, just as any other moderator. Your work for YYG exceeds the costs of GM8 by several dozens of times.

Offline

#8 2011-02-08 10:16:01

xot
Administrator
Registered: 2007-08-18
Posts: 1,239

Re: True Physics Slopes. Engine Done, Optimising Time.

I agree. I put that very point to YoYo, and they considered it, but ultimately made no decision on the matter. I think if I had broached the topic well before the release of GM8, they probably would have agreed. Their hesitation was due to other moderators having already made the purchase. I did eventually purchase GM8 as well. It's a bargain in any event.


Abusing forum power since 1986.

Offline

Board footer

Powered by FluxBB