BBB0280 Admin
Posts: 90 Join date: 2009-02-26 Location: New York
 | Subject: Programming Jobs Fri May 22, 2009 11:26 am | |
| JOBS: Make a better attacking system Make a defense system make an avoid system make an accuracy system program enemy AI ( separate topic for this ) Draw the stats in the upper left hand corner make the faster attacking speed supersonic can debug IF YOU ARE GOING TO TACKLE ONE OF THESE JOBS MAKE A POST BELOW AND THEN POST UP YOUR FINISHED VERSION AS WELL AS PM'ING ME **more jobs to come** download here |
|
julians T2 member

Posts: 12 Join date: 2009-07-04 Location: Far far away
 | Subject: Re: Programming Jobs Sat Jul 04, 2009 11:16 am | |
| http://www.mediafire.com/?1mtwymhdtom\ There is the stats in the top left corner, I'll work on other stuff By the way, Hi I just stumbled on this site and decided to help a little. |
|
julians T2 member

Posts: 12 Join date: 2009-07-04 Location: Far far away
 | Subject: Re: Programming Jobs Sat Jul 04, 2009 11:45 am | |
| There is an even more updated version, I put in a better damage system, and a defence system ( we can put sprites in it later, just press d to defend) and I also put how much you were damaged and how much you damaged then (like maplestory ish, it pops up with you attk them or they attack you) http://www.mediafire.com/?1mtwymhdtom |
|
julians T2 member

Posts: 12 Join date: 2009-07-04 Location: Far far away
 | Subject: Re: Programming Jobs Sat Jul 04, 2009 1:45 pm | |
| Hey, I forgot about making the sword faster, here I dont want to upload it and telling you exactly where to put the one sentence of code is to hard because of all the code, just copy this code and paste it over the orginal code in the step event of the player object | Code: | // Gravity
gravity = place_free(x,y+1)*0.5;
// Limit the vertical speed
vspeed = min(10,max(vspeed,-10))
// Moving
if(keyboard_check(vk_right)) && defending = false { dir = RIGHT } if(keyboard_check(vk_left)) && defending = false { dir = LEFT } xspd = (keyboard_check(vk_right)-keyboard_check(vk_left))*4 repeat(abs(xspd)) { x += place_free(x+sign(xspd),y)*sign(xspd) }
// Jumping
vspeed -= ((!place_free(x,y+1)+(place_free(x,y+1)/17))*5)*keyboard_check(vk_up)
//Code
if(keyboard_check_pressed(ord("A")) && !instance_exists(obj_attack1)) { image_speed = 1/2 instance_create(x,y,obj_attack1) }
//Sprite Setting /*-------------------------------------------------------------------------------------------------*/
if !instance_exists(obj_attack1) { //Jumping if(place_free(x,y+1) && dir==RIGHT) { sprite_index = spr_player_jumpr } if(place_free(x,y+1) && dir==LEFT) { sprite_index = spr_player_jumpl } //Idle if(!place_free(x,y+1) && !keyboard_check(vk_right)-keyboard_check(vk_left)) { if(dir==LEFT) { sprite_index = spr_playerl } else { sprite_index = spr_playerr } } //Moving if(!place_free(x,y+1) && keyboard_check(vk_right)-keyboard_check(vk_left)==1) { sprite_index = spr_player_runr } else if(!place_free(x,y+1) && keyboard_check(vk_right)-keyboard_check(vk_left)==-1) { sprite_index = spr_player_runl }
} else if instance_exists(obj_attack1) { //Attacking Sprites if dir=RIGHT { sprite_index = spr_player_sword_swingr }
if dir=LEFT { sprite_index = spr_player_sword_swingl } } //HP stuff
if hp<0 {hp=0};
if hp=0 {room_restart()};
if (hp < 0) hp=0; if (hp > maxhp) hp = maxhp;
//leveling up! if xp >= maxxp { level+= 1; vit+=1; hp+=10; mp+=10; str+=10; dex+=10; int+=10; def+=2; xp=0; maxxp+=14; hp=maxhp; mp=maxmp; }
|
|
|
BBB0280 Admin
Posts: 90 Join date: 2009-02-26 Location: New York
 | Subject: Re: Programming Jobs Tue Jul 14, 2009 6:48 pm | |
| thx i failed school summer school be back somtime august sorry =/ |
|
System Moderator


Posts: 65 Join date: 2009-05-09 Age: 14 Location: Florida
 | Subject: Re: Programming Jobs Thu Jul 16, 2009 9:43 am | |
| | Code: | if xp >= maxxp { level+= 1; vit+=1; hp+=10; mp+=10; str+=10; dex+=10; int+=10; def+=2; xp=0; maxxp+=14; hp=maxhp; mp=maxmp; }
|
It appears that when you level you MaxXP increases but your total XP goes to 0...That may cause problems. If you complete a large quest with 595/600 exp... You would gain say 200 from the quest but only get 5 exp..._________________  |
|