Skip to content

Commit

Permalink
fixed music, made peanut butter have collisionbox and made it look a …
Browse files Browse the repository at this point in the history
…bit nicer
  • Loading branch information
Applemunch committed Dec 26, 2020
1 parent 3a74f88 commit c50a292
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 15 deletions.
1 change: 1 addition & 0 deletions objects/obj_endlevel/Step_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ if place_meeting(x,y,obj_player) && grabbed == false
{
grabbed = true
obj_player.state = 1
obj_player.yspeed = 1
instance_create_depth(0,0,0,obj_fade)
alarm[0] = room_speed * 2.5
}
2 changes: 1 addition & 1 deletion objects/obj_music/Create_0.gml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
global.music = mus_menu
global.music = audio_play_sound(mus_menu,1,false)
13 changes: 8 additions & 5 deletions objects/obj_music/Other_4.gml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
audio_stop_sound(global.music)
var mus = mus_nothing

if room == menu
global.music = mus_menu
mus = mus_menu
if room == plugs_1 or room == plugs_2 or room == plugs_3
global.music = mus_room1
mus = mus_room1
if room == emptiness_and_ambience
global.music = mus_nothing
mus = mus_nothing



audio_play_sound(global.music,5,true)
if !audio_is_playing(mus) {
audio_stop_sound(global.music)
global.music = audio_play_sound(mus,1,true)
}
1 change: 1 addition & 0 deletions objects/obj_ouchie/Create_0.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
depth = 1
2 changes: 1 addition & 1 deletion objects/obj_ouchie/Step_0.gml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if place_meeting(x,y,obj_player)
if place_meeting(x,y,obj_player) and obj_player.state != 1
{
audio_play_sound(sfx_hurt,0,false)
with obj_player
Expand Down
1 change: 1 addition & 0 deletions objects/obj_ouchie/obj_ouchie.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion objects/obj_player/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ targetDoor = "A"
canmove = true
state = 0
yspeed = 0

/*
State 0: Normal (Can move around)
State 1: Pizza Time (Cannot interact with character)
Expand Down
2 changes: 1 addition & 1 deletion objects/obj_player/Step_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if state == 1
{
canmove = false
y += yspeed
yspeed += 0.3
yspeed -= 0.2
}


Expand Down
Binary file modified sprites/spr_butter/63c7a594-9c25-4d7b-ad6e-9dca18938dab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions sprites/spr_butter/spr_butter.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c50a292

Please sign in to comment.