GMS: How to Change Object Solid, to Transparent when Collision happens?

Channel:
Subscribers:
268
Published on ● Video Link: https://www.youtube.com/watch?v=Os276oaE3HY



Duration: 4:58
40 views
0


GMS File: https://bit.ly/3ENpCHP

obj_tree

Events:

Set Alarm 0

Actions:

if place_meeting(x,y,obj_tree){
image_alpha = 9;
}

Events:

obj_person

Actions:

if place_meeting(x,y,obj_tree){
image_alpha = 0.2;
}else{
image_alpha = 1;
}

Actions:

Set Alarm 0 to 10

Next Video: GMS: How to Enter a Building & Leave? (Cut Away)

Next Video: GM: A Look into Text IO (Brief Over View)

Next Video: GM: This may happen, if I can get it to work. How to Create a Jump in Fake 3D?







Tags:
game
maker
studio
change
transparent
alpha
how
learn
show
find
hide
tree
device
windows
pc
computer
android
phone
make
create
instance
meet
if
place
collision
hit
move
across
under
neath
depth
image
speed
direction
face
player
object
go
follow
forest
overlap
timer
alarm
solid
overlay
code