PDA

View Full Version : Looking for a teacher that can help me.

05-31-2011, 01:09 PM
Hello I'm looking for a teacher that can help me with game maker and learning to code for example I have been trying to make a sprite jump arc for some time with no help and have gotin no were.

If you are willing to teach me I will do my best.

one last note I have tryed to revise a code and I now the basic componits for the coad to work are there
but the person that made the code put extra stuff in the code that does'nt need to be there so when I have tryed to revise the code the game will not work the code look's like this oh and there are 4 parts all four parts making an compleat game engine heres the code. the things that don't need to be there are the 1ups i really don't know why thats even there = that parts confusing me to no end.

and when I have tryed to revise this code Y= A and this code has the basic jump componits to make a sprite jump and jump arc which is all I really want to know how to do. Please don't respond unless you are really willing to help.

// Allows Character to land properly ... hopefully //

//value used for land checking ... duh

if jumpArc = -5
{
sound_play(snd_x_jump)
}

if jumpArc < 6 and water = 1
{
jumpArc = jumpArc+.2;
water = 2;
}
else if jumpArc < 6 and water = 5
{
water = 0
}

else if jumpArc < 6 and water = 3
{
water = 4
}
else if jumpArc < 6
{
jumpArc = jumpArc+.2;
}

obj_x_jump_left_1up.y = obj_x_jump_left_1up.y + jumpArc;

if jumpArc > -4
{
sprite_index = spr_x_jump_left_2up
}
if jumpArc > -3
{
sprite_index = spr_x_jump_left_3arc
}

if jumpArc >= 0
{
landCheck = 0
for ( i = 1; i < 70; i += 1 )
{
if !place_free(x,y + jumpArc) and place_free(x,y + jumpArc - landCheck)
{
instance_change(choose(obj_x_jump_left_6land),1)
obj_x_jump_left_6land.y = obj_x_jump_left_6land.y + jumpArc - landCheck
sound_play(snd_x_land)
}
landCheck = landCheck + 0.2
}
}

if jumpArc > .2
{
sprite_index = spr_x_jump_left_4fall
}
if jumpArc > 1.2
{
sprite_index = spr_x_jump_left_5fall
}