【GAMEMAKER】Character Selected

 Information about object: object0

Sprite: sprite0
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Create Event:
execute code:

image_single = (x/50)+(((y-17)/50)*3)-1

Information about object: object1
Sprite: sprite1
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Create Event:
execute code:



a = 0
b = 17
while (a+b<250) {
 a += 50
 if a > 150 {
  a = 50
  b += 50
 }
 instance_create(a,b,object0)
}
Step Event:
execute code:

if x < 50 { x = 150 }
if x > 150 { x = 50 }
if y < 50 { y = 150 }
if y > 150 { y = 50 }
Key Press Event for <any key> Key:
execute code:

if keyboard_check(vk_enter) {
 global.selection = ((x/50)-1)+(((y/50)-1)*3)
 room_goto_next()
}

if keyboard_check(vk_left) { x -= 50 }
if keyboard_check(vk_right) { x += 50 }
if keyboard_check(vk_up) { y -= 50 }
if keyboard_check(vk_down) { y += 50 }

Information about object: object2
Sprite: sprite1
Solid: false
Visible: false
Depth: 0
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Create Event:
execute code:

zzz = instance_create(200,50,object0)
zzz.image_single = global.selection

No comments:

My New Favorite Music Genre Is Polish Noir

These 10 artists create music that is mystical, melancholy, magical, and more. ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏    ...

Contact Form

Name

Email *

Message *