Jump to content


gamemaker7pro

Member Since 25 May 2008
Offline Last Active Jul 07 2009 01:40 AM

Posts I've Made

In Topic: Platform

18 January 2009 - 03:37 AM

Here, this is how I do my complete walking code, feel free to use it.

step event
{
if keyboard_check(vk_left) && !keyboard_check(vk_right)
{
 sprite_index = spr_ball// what the sprite looks like moving left
 x-=15; // speed if obj. when moving left
facing = 0;
}
else
if keyboard_check(vk_right) && !keyboard_check(vk_left)
{
 sprite_index = spr_ball // what the sprite looks like moving right
 x+=15; // speed of obj. when it moves right
facing = 1;
}
else
if keyboard_check_released(vk_left)
{
 sprite_index = spr_ball // sprite that shows when left is released
}
else
if keyboard_check_released(vk_right)
{
sprite_index = spr_ball // sprite that is show when user releases right
}
}
i put this code in a separate code box, but i think you can put it in the first also

if(place_free(x,y+1))
{
	gravity = 0.5; // turn on the gravity
}
and also in step event, and i also put this in a seperate box, but i think you can put it in the same.

if (vspeed >= 12)
{
	vspeed = 12;
}
create event:

gravity_direction=270;
vspeed=2;
collision with floor:

move_contact_solid(direction, 12);
vspeed = 0;
gravity = 0;



edit: ops...it looks like you needed something different than a walking event...one sec letme look at your code lol.sry

edit again: I dont quite understand your question, can you rephrase?

In Topic: Delete

18 January 2009 - 03:32 AM

I think what i used before was g-java, is it where they give you this url and you put where you uploaded your game into a part of it? If so, then yea, it works awesomely, but I cant find the URL now T_T, can you pls tell me it?

In Topic: Cheap Jordan Shoes

18 January 2009 - 03:31 AM

Omg.....shut up...go somewhere else to advertise your frickn company

In Topic: How Did You Learn Gml?

14 January 2009 - 04:53 AM

I started GM and then i wandered into C# and C++, then i got bored of that and came back, and GML was easy...I used that lil grey box at the bottom of the screen, its so helpful XD

In Topic: Platform Problem

14 January 2009 - 03:59 AM

This is a problem I've seen in a few platformers, the most recent I can think of is The Power, and it's weird. What happens is for some reason when you jump at a platform or solid object from what seems to be a very specific angle, you hit the corner exactly and drop down instantaneously to the nearest solid object below you. Basically it instantaneously puts you down however many pixels. It's a hard glitch to reproduce, but it's definitely there. Any help?

hmm,
I am not sure exactly what you need, but i have this simple engine that I made for another question that I answered not long ago... but it has the basic jumping codes and stuff, and they work just fine. So copy whatever you need from that.