با سلام
اين كدها را نوشتم
ماله بازي شكارچي سكه هاست
لود كردم
ران كردم
اما دريغ از اجراي بازي
مثل اينكه هيچ اسكريپتي ندادي و همين طوري رو هوا كامپايل كردي و اجرا
چكار كنم؟
ممنون
[code]var video_mode=7;
var video_depth=32;
var speed1=0;
var speed2=0;
font st="2 Homa",0,40;
var score=0;
var time_n=60;
var key=12;
bmap sc_map=<score_mnu>;
bmap time_map=<time_mnu>;
bmap w_map=<win>;
bmap g_o_map=<gameover>;
bmap key_map=<key_mnu>;
panel sc_panel{
layer=1;
pos_x=0;
pos_y=0;
window=20,20,200,100,sc_map,1,1;
flags=visible,overlay;
}
panel sc_digit{
layer=2;
pos_x=0;
pos_y=0;
digits=65,50,3,st,1,score;
flags=visible;
}
panel time_panel{
layer=1;
pos_x=0;
pos_y=0;
window=20,130,200,100,time_map,1,1;
flags=visible,overlay;
}
panel time_digit{
layer=2;
pos_x=0;
pos_y=0;
digits=90,160,3,st,1,time_n;
flags=visible;
}
panel key_panel{
layer=1;
pos_x=0;
pos_y=0;
window=20,240,200,100,key_map,1,1;
flags=visible;
}
panel key_digit{
layer=2;
pos_x=0;
pos_y=0;
digits=80,267,3,st,1,key;
flags=visible;
}
panel win{
layer=3;
pos_x=0;
pos_y=0;
window=0,0,800,600,w_map,1,1;
flags=transparent;
}panel game_over{
layer3;
pos_x=0;
pos_y=0;
window=0,0,800,600,g_o_map,1,1;
flags=transparent;
}
text color{
layer=2;
pos_x=0;
pos_y=0;
red=255;
green=0;
blue=0;
flags=visible;
}
text message_txt{
layer=1;
pos_x=240;
pos_y=520;
red=255;
green=255;
blue=255;
font=st;
string="Press Space to open the Box, Plz.";
flags=transparent;
}
var tr_ev=off;
entity*focus_sangogh;
function check_tr(){
if(you==player){
tr_ev=on;
focus_sandogh=my;
}
}
var temp_counter=0;
var t_num=0;
var ar_num[10]=0,0,0,0,0,0,0,0,0,0;
var i=0;
var init=on;
function coin_control(){
my.scale_x=0.3;
my.scale_y=0.3;
my.scale_z=0.3;
while(1){
my.pan+=1;
wait(1);
}
}
function set_coin_loc(){
while(temp_counter<10){
randomize();
t_num=int(random(20))+1;
i=0;
while(i<=temp_counter){
if(ar_num[i]!=t_num){
i+=1;
}else{
t_num=int(random(20))+1;
i=0;
}
wait(1);
}
ar_num[temp_counter]=t_num;
temp_counter+=1;
wait(1);
}
init=off;
}
action Sandogh{
my.shadow=on;
my.enable_tigger=on;
my.tigger_rang=150;
my.event=check_tr;
while(init){wait(1);}
my.skill2=0;
while(my.skill2<10>0){
key-=1;
while(my.frame<3){
my.skill3+=0.3;
ent_animate(my,"open",my.skill3,anm_cycle);
wait(1);
}
my.flag2=off;
focus_sandogh=null;
i=0;
while(i<10){
if(my.skill1==ar_num[i]){
score+=10;
if(score==100){
wait(100);
win.alpha=0;
win.visible=on;
while(win.alpha<100{
win.alpha+=3;
wait(1);
}
wait(200);
exit;
}
break;
}
i+=1;
wait(1);
}
if(key<1 && score<100){
game_over.alpha=0;
game_over.visible=on;
while(game_over.alpha<100>-40 && temp_tilt<20>0){
time_n-=1;
}else{
game_over.algha=0;
game_over.visible=on;
while(game_over.alpha<100){
game_over.alpha+=3;
wait(1);
}
wait(200);;
exit;
}
sleep(1);
}
}
action Hunter{
player=my;
my.shadow=on;
move_mode=GLIDE
cam_control();
timer();
while(1){
/////// CAMERA ///////
vec_for_vertex(cam_temp,my,294);
vec_set(camera.x,cam_temp.x);
camera.pan=my.pan;
//////////////////////
speed1+=13*time
speed2+=1*time;
if(key_w){
c_move(my,vector(6,0,0),nullvector,GLIDE+ACTIVATE_ TRIGGER);
ent_animate(my,"walk",speed1,anm_cycle);
}
if(key_s){
c_move(my,vector(-6,0,0),nullvector,GLIDE+ACTIVATE_TRIGGER);
ent_animate(my,"walk",speed1,anm_cycle);
}
if(key_a){
c_move(my,vector(0,4,0),nullvector,GLIDE+ACTIVATE_ TRIGGER);
ent_animate(my,"walk",speed1,anm_cycle);
}
if(key_d){
c_move(my,vector(0,-4,0),nullvector,GLIDE+ACTIVATE_TRIGGER);
ent_animate(my,"walk",speed1,anm_cycle);
}
if(key_w==off && key_s==off && key_a==off && key_d==off){
ent_animate(my,"satand",speed2,anm