IF문 최후의 노가다

by 은색바람 posted Sep 11, 2012
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

d3d_set_projection_ortho(0,0,640,480,0)
d3d_set_projection_ortho(view_xview,view_yview,640,480,view_angle)

if global.menu = 1
{
{
d3d_set_projection_ortho(0,0,640,480,0)
draw_sprite_ext(spr_Skil,-1,20,10,1,1,0,c_white,1);
d3d_set_projection_ortho(view_xview,view_yview,640,480,view_angle)
if global.skill = 1
{
d3d_set_projection_ortho(0,0,640,480,0)
d3d_set_projection_ortho(view_xview,view_yview,640,480,view_angle)
draw_sprite_ext(spr_Skils,-1,30,80,1,1,0,c_white,1);
}
if global.skill = 2
{
d3d_set_projection_ortho(0,0,640,480,0)
d3d_set_projection_ortho(view_xview,view_yview,640,480,view_angle)
draw_sprite_ext(spr_Skils,-1,30,120,1,1,0,c_white,1);
}
if global.skill = 3
{
d3d_set_projection_ortho(0,0,640,480,0)
d3d_set_projection_ortho(view_xview,view_yview,640,480,view_angle)
draw_sprite_ext(spr_Skils,-1,30,160,1,1,0,c_white,1);
}
if global.skil1 = 0 or global.skil1 = 1
{
d3d_set_projection_ortho(0,0,640,480,0)
d3d_set_projection_ortho(view_xview,view_yview,640,480,view_angle)
draw_sprite_ext(spr_Skil1,-1,30,80,1,1,0,c_white,1);
global.skill = 1
}
if global.skil1 = 2
{
draw_sprite_ext(spr_Skil1,-1,30,80,1,1,0,c_white,0);
}
if global.skil2 = 0
{
d3d_set_projection_ortho(0,0,640,480,0)
d3d_set_projection_ortho(view_xview,view_yview,640,480,view_angle)
draw_sprite_ext(spr_Skil2,-1,30,120,1,1,0,c_white,1);
global.skill = 2
}
if global.skil2 = 1
{
draw_sprite_ext(spr_Skil2,-1,0,0,1,1,0,c_white,0);
}
if global.skil3 = 0
{
d3d_set_projection_ortho(0,0,640,480,0)
d3d_set_projection_ortho(view_xview,view_yview,640,480,view_angle)
draw_sprite_ext(spr_Skil3,-1,30,160,1,1,0,c_white,1);
global.skill = 3
}
if global.skil3 = 1
{
draw_sprite_ext(spr_Skil3,-1,0,0,1,1,0,c_white,0);
}
}
}
if global.menu = 0 or global.menu = 1
{
d3d_set_projection_ortho(0,0,640,480,0)
draw_sprite_ext(spr_levelup,-1,0,0,1,1,0,c_white,1);
d3d_set_projection_ortho(view_xview,view_yview,640,480,view_angle)
}
//instance_activate_all() is glbal.skil click a enter

 

ㅋㅋ 자작입니당.

아래 // 주석은 나중에 넣을꺼에욤 ㅎㅎ