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

Jump'n'Run Script Nr.2!

A Config Script for GameMaker

Members see zero ads. Membership is 100% free
37 702 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
hspeed = 0

if keyboard_check(vk_left)
    hspeed -= 7
if keyboard_check(vk_right)
    hspeed += 7
   
if place_free(x+hspeed,y) == false
{
    if hspeed > 0
        move_contact_solid(0,-1)
    if hspeed < 0
        move_contact_solid(180,-1)        
    hspeed = 0
}

    vspeed += 0.5

if keyboard_check_pressed(vk_up)
if place_free(x,y+10) == false
    vspeed -= 13
   
if place_free(x,y+vspeed) == false
{
    if vspeed > 0
        move_contact_solid(270,-1)
    if vspeed < 0
        move_contact_solid(90,-1)
        vspeed = 0
}

if place_free(x+hspeed,y+vspeed) == false
    hspeed = 0
   
if keyboard_check_released(vk_up)
if vspeed < 0
    vspeed /= 2
**Control:** - Left = vk_left - Right = vk_right - Jump = vk_up can jump 50px by pressing the up-arrow ; or let you jump 150px by holding the up-arrow . You also cant walk/fall through solid objects 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

Key Authors
Durox
Coder

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 6.4k
  • access_time 7y
  • access_time 6y

More from Submitter

menu

WiPs by Submitter

menu

More Other/Misc Scripts