-Dark-Star-Studios-
 
HomeHome  ­FAQFAQ  ­SearchSearch  ­RegisterRegister  ­Log inLog in  
Share | 
 

 Programming Jobs

View previous topic View next topic Go down 
AuthorMessage
BBB0280
Admin


Posts: 90
Join date: 2009-02-26
Location: New York

PostSubject: 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
Back to top Go down
View user profile http://dark-star-studios.nice-forums.com
julians
T2 member
T2 member


Posts: 12
Join date: 2009-07-04
Location: Far far away

PostSubject: 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.
Back to top Go down
View user profile http://julianstanley.com
julians
T2 member
T2 member


Posts: 12
Join date: 2009-07-04
Location: Far far away

PostSubject: 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
Back to top Go down
View user profile http://julianstanley.com
julians
T2 member
T2 member


Posts: 12
Join date: 2009-07-04
Location: Far far away

PostSubject: 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;
}
Back to top Go down
View user profile http://julianstanley.com
BBB0280
Admin


Posts: 90
Join date: 2009-02-26
Location: New York

PostSubject: Re: Programming Jobs   Tue Jul 14, 2009 6:48 pm

thx i failed school summer school be back somtime august sorry =/
Back to top Go down
View user profile http://dark-star-studios.nice-forums.com
System
Moderator
Moderator


Posts: 65
Join date: 2009-05-09
Age: 14
Location: Florida

PostSubject: 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...

_________________
Back to top Go down
View user profile
 

Programming Jobs

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
Dark-Star-Studios :: First Game :: Resources and jobs-