The RPG Maker Resource Kit

Other Game Creation => Other Game Making Programs => Topic started by: &&&&&&&&&&&&& on November 26, 2007, 06:24:34 PM

Title: [GM] Gravity.
Post by: &&&&&&&&&&&&& on November 26, 2007, 06:24:34 PM
Can sombody make me a diagram of how the gravity works? Maybe even teach me how to use it? I keep putting diffrent numbers in the gravity... thing, and the objects just go flying off the screen. >_>
Title: Re: Gravity.
Post by: Lab_Zero on November 26, 2007, 10:40:47 PM
Ok, I guess you already know how to send them vertically, so at each "step" you need to check whether you are in the air or on a solid, and if you are in the air then set gravity, gravity is cumulative each step, it just keeps increasing, so after a given amount of time the gravity pulling down becomes more than the upwards(vertical speed) force. So now you will continually fall increasing in speed, so you have to create the opposite action for when you contact the ground. the "ELSE" so that when you contact a solid it will stop gravity (by setting it to 0 at direction 270). and also you have to stop your vertical speed by setting it to 0 also, so that after you hit a solid they both are reset to be used again.

(Note: anything directly after a "check" (the little octagons in actions) is the only thing that the check applies to, if you want more action to be included in the condition of the "check" then enclose them in a start and end block.)

Here is a step to make the character fall but stop at solids:
(http://i240.photobucket.com/albums/ff312/L-A-B_51/step.jpg)
tried to put notes about what is taking place kind of.
If you copy this exactly it won't funtion due to some notes being after the checks and not specific actions, or group of actions.

Hope this helps.
Title: Re: Gravity.
Post by: &&&&&&&&&&&&& on November 27, 2007, 12:44:06 PM
Thank you. <3

EDIT- I made this. >_>

Title: Re: Gravity.
Post by: Lab_Zero on November 27, 2007, 02:40:21 PM
Hey I tried to download your mario exe but all it is, is a file, was that right?
Title: Re: Gravity.
Post by: &&&&&&&&&&&&& on November 27, 2007, 02:41:29 PM
Hey I tried to download your mario exe but all it is, is a file, was that right?

I don't know... for me it's an EXE.
Title: Re: Gravity.
Post by: Lab_Zero on November 27, 2007, 05:29:18 PM
I tried again and I think I might know what the problem is, when I download your mario game it gives me a file named INDEX. not a .gmk file(with the hammer in the center of the red circle and the right corner of a page folded down). The file I downloaded from you is like a quick save that will only work if I have the original INDEX.gmk it was saved from. It's a bit confusing, but it's telling me I don't have the program that created it, so I can't open it. Do you have enough to make a stand along demo, just for a quick trial?
Title: Re: Gravity.
Post by: &&&&&&&&&&&&& on November 27, 2007, 06:54:49 PM
Hmmm...

EDIT- This is what I have so far.
Title: Re: Gravity.
Post by: J-Crew on December 02, 2007, 12:22:47 AM
Ok, I took a look at what you had so far, and I noticed it being a little blocky in movement and when you jumped. So I made a new Mario object (keeping the old one the way it was) And I put it in the level you had. I enhanced all the collisions and what-not. But I had a few suggestions as well. (see below) So if you have any questions about anything I changed or how to add more to it just ask.


New changes:


Suggestions:


Known Bugs:


                                                                                      -  J-Crew