Hey guys! Just didn't want you guys to think I've abandoned this project. I have been fervently working on it every day. I've upgraded from the simple drag and drop coding and have begone coding with GML the coding language in Game Maker. Just take a look at the current engine. This stuff is crazy:
KEY_RIGHT=keyboard_check(ord("D"));
KEY_LEFT=keyboard_check(ord("A"));
KEY_JUMP=keyboard_check_pressed(vk_space);
KEY_DOWN=keyboard_check(ord("S"));
if (KEY_DOWN and KEY_JUMP) pass=1;
KEY_FALL=keyboard_check_released(vk_space);
if (KEY_RIGHT)
{
hsp=walksp;
image_xscale=1;
}
if (KEY_LEFT)
{
hsp=-walksp;
image_xscale=-1;
}
if (!KEY_RIGHT and !KEY_LEFT) hsp=0;
if (place_meeting(x+hsp,y,obj_Block)) hsp=0;
x+=hsp;
if (place_meeting(x,y+1,obj_Block)) grounded=1;
else grounded=0;
if (place_meeting(x,y+1,obj_passbricks)) bricks=1;
else bricks=0;
if (grounded) pass=0;
if (KEY_JUMP and grounded)
{
vsp=jumpsp;
}
if (KEY_JUMP and bricks and not pass) vsp=jumpsp;
if (KEY_FALL and !grounded and vsp<-1) vsp=-1;
if (!grounded) vsp+=grav;
if (place_meeting(x,y+vsp,obj_Block) and vsp<0) vsp=0;
if (place_meeting(x,y+vsp,obj_Block) and vsp>0)
{
var cc;
cc=vsp+1;
while (!place_meeting(x,y+1,obj_Block) and cc>=0) y+=1;
grounded=1;
vsp=0;
}
if (place_meeting(x,y+vsp,obj_passbricks) and vsp>0 and not pass)
{
var cc;
cc=vsp+1;
while (!place_meeting(x,y+1,obj_passbricks) and cc>=0) y+=1;
bricks=1;
vsp=0;
}
y+=vsp;
if (grounded or bricks)
{
if (hsp==0)
{
sprite_index=spr_SligStand;
image_speed=0;
}
else
{
if (sprite_index!=spr_SligWalk) image_index=0;
sprite_index=spr_SligWalk;
image_speed=0.5;
}
}
else
{
sprite_index=spr_SligJump;
image_speed=0;
}
|