Jump to content


iceflame1019

Member Since 14 Feb 2006
Offline Last Active Jan 15 2009 03:26 AM

Topics I've Started

Implementing Slopes

22 September 2007 - 06:30 PM

I had this topic in the Novice Q&A but so far only two problems have been addressed. What I really to know is how to implement slopes and get a good sprite rotation depending on the slope. IE I want the car to rotate up when going uphill and down when going downhill. Physics-wise this is a go-cart kind of game (or will be if I can get it to work).

My biggest issue right now is that I need to know how to implement slopes, and how to get the carts to roll on them instead of stopping. I've tried various "slope tutorials" yet I can't seem to alter them to make things fall downslope when they come to rest.

I currently have no slope things at all in the gm6 found in the Novice topic, since I can't get anything to work.

Summary of above: where do I find a good tutorial for my problem, or can anyone give me some pointers/codes/whatever? I learn best by tweaking examples but I can go with coding. I don't understand boolean yet so that's kind of a killer for me :blink: If you post a code, could you explain what the codes do?

EDIT here's the link to the gm6: http://upload2.net/p..._trial.gm6.html

If this shouldn't be here, please delete/close/whatever.

Go-kart Racing Game

08 September 2007 - 04:24 PM

Perio Kart...A racing sequel to my Uber Perio game in construction, however I'm having some coding issues.  I haven't really used GM in a while so it's probably something I'm overlooking or forgetting.
Here's the .gm6 downoad link:
http://upload2.net/p..._trial.gm6.html

1) SOLVED: how do I keep the karts stationary?  I have it set up as such: [EDIT: updated codes]
Right Key--Accelerate, Keyboard event
if hspeed<20
  hspeed+=.5
Left Key--Brake, Keyboard event
if hspeed>0
  hspeed-=1
else if hspeed=0
  speed=0
No Key--slow down, Keyboard event
if hspeed>0
    speed-=.5

this was solved by using this in the no key code:
if hspeed>0
speed-=.5

if self.hspeed<0{hspeed=0}

2) How would I make it so that a track (room) can be looped?  This is a side-scrolling track but I want to give the impression of being cirular, so I want the cars to, once they've crossed the finish line, jump back to the start and continue.  (this'd make it easier to drop mines and bombs and stuff, a request from my friends)

Also where can I find a good tutorial on having the karts follow slopes/slowdown-speed up on slopes/rotate when going up-down slopes/shoot off a slope when going fast?  for the life of me I cannot find a tutorial (would help if my browser would load some of the pages  :P )

I will most likely have more problems later on so I'll just edit this thread when issues arise.  If it gets really underway I might ask it to be moved to WIP, I don't know.  Right now I've just finished the main racing sprites so it's not fully underway.

EDIT: okay new problem (other than that i hate the three-day bumping limit):

I've tried to implement rotation for when the kart falls to a lower level of the track, but no matter what I do, the cart always flips vertically and gets stuck in the ground.  All I'm doing is in the step event:
if vspeed>0
  image_rotate=direction
that's all for now cuz all I'm doing is driving it over a small ledge to the track below.  Where can I find a tutorial for slopes/rotations and stuff?

File Protection? *solved*

29 August 2007 - 07:53 PM

For my games I tend to want to include video files.  Since renaming video files can mess things up, I'm looking for a way to prevent intentional/accidental renaming of files in a game folder.  Is there a way to password-protect files/folders?  (also would come in handy at home... :P)  or just in general a way to prevent unwanted access/editing, like if I don't ant my video file to be copied?

if this is in the wrong topic, terribly sorry.

Rpg Vs Online

16 August 2007 - 08:57 PM

Half my friends say this idea should be an RPG, and half say it should be an online game like Maple Story.  So, since I can't decide, I'm taking ideas/opinions from others.  Below is my situation.

"Nemus Lumis...Tree of Light.

Long have its glittering boughs illuminated our lands...long have the shines of its fruits deterred the Umbrain, the Shadow-Dwellers.  Under its eternal light we have peace and prosperity, we, the four Elemental Tribes of Lumarin, within the Ring of Light, the mountains that guard our borders.  Together with the scattered Outposts we bar the flow of evil from the tainted Cities, which fell long ago..."

So the legends have gone...

One day, the day before the annual Day of Light, the celebration of the Tree's protection and the coming of the "Light Tribe" (angels, you could say) for their annual three-day visit, a caravan rushed into the Ring of Light, bearing the survivors of a deadly roadside attack.  Never before have the Umbrain dared to attack a caravan wielding the Sol Berries. 

You, the player, are off with your best friend, when you sense something wrong with the Nemus Lumis.  Something stirs inside you to see what's wrong, but it is not permitted to climb the hill upon which the Tree sits, unless one has a calling to the Council.  You and your reluctant friend sneak off to the hill, which lies in the very center of the circular land of Lumarin.  The tree's light extends all the way out to the mountain chain encircling the land, but you get the feeling that the light is dimmer.  As you reach the tree, exhausted, you and your friend watch as a shadowy figure approaches the tree, and in a bright flash the tree dies and everything goes dark.  Stunned, you finally come to your senses and find that the council and the caravan survivors are being attacked, and you see rivers of foes approaching as they pour over the mountains.  The Umbrain have finally attacked, as the propchecies have foretold.

After a long and tormentous war the enemies are pushed back and the remaining Sol Berries from Nemus Lumis are displayed as deterrents against the Umbrain.
You, as a punishment for climbing the hill and a fulfilment of the prophecy, are sent out to collect the ten artifacts that can restore the Tree's health.  The artifacts lie in the Fallen Cities, which have been overrun by the Umbrain and are guarded by their most powerful leaders.  You and your four friends set off, each with a single Sol Berry to help you find the way through the dark fog and tangled plants of the Outer Realm.


okay, after that book...

There are four elemental tribes who live in the four quadrants of Lumarin: Ice (North), Wind (East), Fire (West), and Earth (South).  You choose which one you want to be and continue from there.  My friends say it could be a really good RPG, while some others say it would be a great multiplayer online game where you and three friends can help each other with your quests, get items, compete for points, and team up with your elelmental powers to kill creatures and solve puzzles. (Fire and Ice mixed together create water attacks, etc)


Now, if the majority end up thinking it should be an RPG, I'll attempt it, though it'll take a while because of time issues.  I'll also need someone to help me with setting things up like attack strengths/weaknesses, battling, and stuff, or someone else can take the idea if I can't continue.  If, however, it turns out to be a majority vote for online, I'm gonna need someone else to take over, while corresponding with me on the specifics.  I kinda started this game using RPG Maker 2003 but it fell to the side because RPGM isn't fully customizable like GM, though it makes RPGing so much simpler.  Many of my best ideas weren't doable in RPGM.  

So...let the debate begin.  RPG, or online?

Camera Issues

20 February 2007 - 11:30 PM

I'm using the FPS engine found on the GM homepage and so far have come up with a very good setup for my RPG I'm developing (not the one in my sig). Problem is, though, I need the camera to sit a set distance behind the player and swing around when the Left and Right arrow keys are pressed. The camera never sees the front of the character, the character turns with the camera's movement. How do I set this up? I've been playing around with as many of the codes as I can and cannot seem to get anywhere...

I'd very gladly post a demo of the game (currently the overworld is seen from first-person), but the game will not post on any file hosters that I know of.