Jump to content


KuzTum

Member Since 01 Apr 2012
Offline Last Active May 30 2012 04:14 AM

Posts I've Made

In Topic: no collision with block?

02 May 2012 - 01:07 AM

just check the Solid in obj_block   :thumbsup:


it is :\

In Topic: Uknown Variable help?

02 April 2012 - 09:20 PM

Actually your Step event could do with some indentation. I also noticed misplaced parentheses that caused the keyboard check to be done incorrectly.

//JUMPING
if (Jump > 0)
{
    if (keyboard_check(ord('W')) && !keyboard_check(ord('S')))
    {
        vspeed = -10;
        Jump -= 1;
    }
}
//GRAVITY
if (place_free(x, y + 1))
{
    gravity = 0.5;
}
else
{
    gravity = 0;
}

When you say gravity is "not working" I don't know what you mean by that. :D


i used this instead of the other script but now i get the unknown variable problem again? o-o

In Topic: Uknown Variable help?

02 April 2012 - 01:46 AM

No, don't mess with the Step Event. Just ADD a Create Event and put 1 line in it:

Jump = 0;



yaya the error is gone but now could you help me with getting my gravity to work do you think you could give me a hand :D?

In Topic: Uknown Variable help?

01 April 2012 - 10:56 PM

in the create event for that object put:

Jump = 0


create event? i have it as a step event :I am i not supposed to?

In Topic: Uknown Variable help?

01 April 2012 - 10:53 PM

Apparently the variable was never set, for example, in the Create Event of the Obj_char_right.


could you maybe tell me what i have to do for future reference? again im still quite new to this.