Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-31-2011, 12:09 PM   PM User | #1
Dimeadent@yahoo
New to the CF scene

 
Join Date: May 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Dimeadent@yahoo is an unknown quantity at this point
Looking for a teacher that can help me.

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
}
Dimeadent@yahoo is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:18 PM.


Advertisement
Log in to turn off these ads.