Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Simple Player Script

A Config Script for GameMaker

Members see zero ads. Membership is 100% free
23 369 bytes Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
hspeed = 0
   
if keyboard_check(vk_right) == true
    hspeed = 5
if keyboard_check(vk_left) == true
    hspeed = -5

    vspeed = 0

if keyboard_check(vk_down) == true
    vspeed = 5
if keyboard_check(vk_up) == true
    vspeed = -5

   


   

if place_free(x+hspeed,y) == false
    hspeed = 0
if place_free(x,y+vspeed) == false
    vspeed = 0
Just a Simple Code for a player in games with bird's-eye view . This is a part of the code I used for my 1st Game . Needs a Step event.

Comments

Sign up to access this!

No comments yet

Embed

menu
Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Coder
Durox

Submitter

Durox avatar
Durox Joined 7y ago
Offline
Durox
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

menu

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • favorite 0
  • remove_red_eye 5.3k
  • access_time 7y
  • access_time 6y

More from Submitter

menu

WiPs by Submitter

menu

More Other/Misc Scripts