magnum00125
Member
Hello
I have the same water physics as in the old counter strike / half life where if you hold space bar, you float towards the water surface. I am trying to make him jump out of the water if close to the "shore"
This code ain't cuttin it
if position_meeting(x,y-20,oWaterWall) and position_meeting(x+3,y,oWall) {
vspeed = 15
}
Notice: oWall = Wall object
oWaterWall = pool of water object
I have the same water physics as in the old counter strike / half life where if you hold space bar, you float towards the water surface. I am trying to make him jump out of the water if close to the "shore"
This code ain't cuttin it
if position_meeting(x,y-20,oWaterWall) and position_meeting(x+3,y,oWall) {
vspeed = 15
}
Notice: oWall = Wall object
oWaterWall = pool of water object