Quote:
Originally Posted by fire.rox
I already make a old darkorbit jackpot battle.
do you wanna know how to make a jackpot battle with attack allies?
Answer
Scripts>Info
And then you put this by case owners:
random(3)
If you don't understand, i will add a picture soon
THIS IS JUST A THREAD FOR HELP SO NO NEGATIV POST PLEASE!
|
DarkOrbit remix - attack allies tutorial
gamer obj. -> Step event -> Under "Ńňđĺëüáŕ"(fifth code)
Code:
//Ďđîâĺđęŕ đŕńńňî˙íč˙ äî îáúĺęňŕ â ëîęĺ č îňęđűňčĺ ńňđĺëüáű ďî âîçěîćíîńňč.
var ii;
if Rocket_rate>0 then
Rocket_rate-=1
if attacking=true and stoped=false then
{
if firing = shoot_delay firing = 0;
if not instance_exists(target) {target = noone; attacking=false;}
else if firing = 0 then
{
if target.v_zone_bz=true then {show_HUD_message(text.target_in_security); break;}
firing = 1;
if ammo[ammo[0,0],0] / global.code1<guns {show_HUD_message(text.no_ammo); break;}
else
if point_distance(x,y,target.x,target.y) <= range+target.sprite_width*0.75 then
{
restore:=false;
if GunSprite[1]<1 then
{
show_HUD_message(text.no_gun); break;
}
if !(debug_mode and global.unlimited_ammo)
ammo[ammo[0,0],0]-=guns*global.code1;
event_user(1);
}
else
{show_HUD_message(text.target_lenght_out); break;}
}
}
In Space but Event:
Code:
//Đŕęĺňű
if target!=noone and stoped=false then
{
if Rocket_rate=0 then
{
if target.v_zone_bz=true then {show_HUD_message('Öĺëü â áĺçîďŕńíîé çîíĺ.'); break;}
Rocket_rate=60
if rocket_ammo[rocket_ammo[0,0],0] / global.code1<1 {show_HUD_message('Ó Âŕń ęîí÷čëčńü đŕęĺňű âűáđŕííîăî ňčďŕ!'); break;}
else
if point_distance(x,y,target.x,target.y) <= range+target.sprite_width*0.75+100 then
{
with(instance_create(x,y,rocket))
{
target:=other.target; owner:=other.id;
image_angle=other.image_angle;
damage = other.rocket_ammo[other.rocket_ammo[0,0],3];
event_user(0);
sound_play(other.rocket_ammo[other.rocket_ammo[0,0],2]);
}
rocket_ammo[rocket_ammo[0,0],0]-=1*global.code1;
}
else {show_HUD_message('Öĺëü ńëčřęîě äŕëĺęî!'); break;}
}
}
[code]