Pages: [1]
|
|
|
Author
|
Topic: general_klefenz's project recruitment (Read 4110 times)
|
|
|
Cedric6014
Enlightened
Offline
Gender:
Posts: 701
|
I know!
Tight labour market too
|
|
|
Logged
|
|
|
|
RTyp06
*Smell* controller
Offline
Posts: 491
|
rar file.. why not just use the much more common zip?
|
|
|
Logged
|
|
|
|
|
|
jaychant
*Smell* controller
Offline
Gender:
Posts: 432
Please visit my homepage
|
not bad. I would be willing to help, but: 1. I'm too busy with Amber the Dragon: Reclamation of the Throne 2. You're using too much drag&drop (I hate drag/drop, mostly because it is extremely time-consuming to duplicate)
|
|
|
Logged
|
|
|
|
general_klefenz
Zebranky food
Offline
Posts: 29
|
what drad and drop? AI don't use drag and drop
this is the cruiser AI:
{ //AI script for earthling cruiser //sergio klefenz 12/12/08 //pursue enemy until in range, //then stop pursue and shoot script_execute(scr_tracking,obj_control.ply1,turn*power(0.9,limpets)); //check if need to shoot PDL //check for potential targets if instance_number(obj_destructible_parent) > 1 { //temporary movement to avoid self-targeting x += 1024; //define the identity of the nearest target sdtgt = instance_nearest(x,y,obj_destructible_parent); //check target distance if point_distance(x,y,sdtgt.x,sdtgt.y) < 128 { //try to shoot PDL script_execute(scr_PDL,id); } //restore position x -= 1024; } //PDL code end
//check if pointing target if abs(direction-tgtdir) < 10 { //if target if far close up if point_distance(x,y,tgtx,tgty) > 1024 { vecx += cos(direction*pi/180)*acc*power(0.9,limpets); vecy += sin(direction*pi/180)*acc*power(0.9,limpets); //activate propulsor prop = 1; } //try to fire a misil else { //deactivate the propulsor prop = 0; //check energy if energy >= 9 { //check cooldown if shoota = 1 { //fire a misil and set the cooldown global.multi = instance_create(x+lengthdir_x(96,direction),y+lengthdir_y(96,direction),obj_mx); global.multi.tgt = obj_control.ply1 global.multi. direction = direction; if alarm[2] > 3 {alarm[2] += 4;} shootb = 0; shoota = 0; alarm[0] = 15; energy -= 9; } } } } //limit speed script_execute(scr_speed_limitation);
maybe you didn't see into the scripts folder
|
|
|
Logged
|
|
|
|
jaychant
*Smell* controller
Offline
Gender:
Posts: 432
Please visit my homepage
|
I understand you aren't using only drag/drop, but you are using drag/drop.
|
|
|
Logged
|
|
|
|
general_klefenz
Zebranky food
Offline
Posts: 29
|
yes, I used drag and drop, but not in the AI scripts
|
|
|
Logged
|
|
|
|
|
RTyp06
*Smell* controller
Offline
Posts: 491
|
ERROR in action number 4 of Create Event for object obj_button_ship:
Error in code at line 4: case 1: sprite_index = spr_ico_guardian; break;
at position 33: Unknown variable spr_ico_guardian
(and that's only the first error in a long stream of similar errors)
A quick glance at your GMK file shows me that indeed the graphic resource does not exist (or is improperly named). If you look at the code in the create event for obj_button_ship, any line in the switch/case statement where the resource name doesn't change to the color purple means the graphic resource isn't present or is missnamed.
Oh and thanx for putting it in .zip format and finding a better host!
|
|
|
Logged
|
|
|
|
|
|
|
Pages: [1]
|
|
|
|
|