F
FoolishTom
Guest
Am still very new to Game Maker Studios, and have minimal experience with programming altogther, but thought i would give it a try.
I'm Currently trying to make a game similar to Mario (something i know that can show me a lot of the basics), but have come across a problem with my collisions on the ground.
So up till now i have been using:
but this does not allow me to jump up through the ground to a level higher. So i added after:
This gets me closer, but if i stop moving up at any point i come to a halt, and am basically stuck in the wall.
Any suggestions on a change, that will only stop my movement downward only if my feet are touching the top of the floor.
Thanks in Advance,
FoolishTom
Noobie
I'm Currently trying to make a game similar to Mario (something i know that can show me a lot of the basics), but have come across a problem with my collisions on the ground.
So up till now i have been using:
if (place_meeting(x,y+vsp,obj_floor))
{
{
while(!place_meeting(x,y+sign(vsp),obj_floor))
{
vsp = 0;
}{
y += sign(vsp);
}vsp = 0;
but this does not allow me to jump up through the ground to a level higher. So i added after:
if (vsp > 0)
{
{
if (place_meeting(x,y+vsp,obj_floor_thru))
{
}{
while(!place_meeting(x,y+sign(vsp),obj_floor_thru))
{
vsp = 0;
}{
y += sign(vsp);
}vsp = 0;
This gets me closer, but if i stop moving up at any point i come to a halt, and am basically stuck in the wall.
Any suggestions on a change, that will only stop my movement downward only if my feet are touching the top of the floor.
Thanks in Advance,
FoolishTom
Noobie