Monday, May 31, 2021

【GAMEMAKER】Basic Radar

 Information about object: obj1

Sprite: sprObj1
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Information about object: objController
Sprite: sprController
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Draw Event:
execute code:

pen_color=c_black;
pen_size=3;
brush_color=c_green;
draw_rectangle(view_xview[0],view_yview[0],view_xview[0]+100,view_yview[0]+100, false);
brush_color=c_blue;
for (i=0; i<instance_count; i+=1) {
  iii = instance_id[i];
  if (iii.object_index == obj1) {
    draw_sprite_ext(sprObj1,0,view_xview[0]+iii.x/11,view_yview[0]+iii.y/11,0.25, 0.25,0,-1,1);
  }
}
draw_sprite_ext(sprPlayer,-1,view_xview[0]+objPlayer.x/11,view_yview[0]+objPlayer.y/11,0.25, 0.25,0, -1,1);

Information about object: objPlayer
Sprite: sprPlayer
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Step Event:
execute code:

if keyboard_check(vk_left) then x-=4;
if keyboard_check(vk_right) then x+=4;
if keyboard_check(vk_up) then y-=4;
if keyboard_check(vk_down) then y+=4;

No comments:

Post a Comment

FIFI FW Discount Tickets for WordPress Subscribers

  Hello Fashion Blog Subscribers:   Did you know that because you are a subscriber to t...