T
teamrocketboyz
Guest
Hello all ive created a game wqhere when your character shoots it uses (water) aswell as when you ground pound. the water regains when the o_player is stood on the wall via this code
pretty basic code and it works, unless i stand in a certain area. everything is the same, the object is still o_wall yet it doesnt regain.
i have created a video showing what i mean, the area towards the end of the video is where i have the problem but i advise watching the entire video so you can see it working. the water level is shown when the sponge fills up with water (blue bar within the player itself)
EDIT i have added a draw_text function (top left ish ) to show my water level.as you can see initially thewateronly regains once the player is on the floor and always goes up to 100, the ground pound move uses a little water but that regains up to 100 and a normal jump uses no water.... once i enter the weird area and do a ground pound the water stops at 99.70 and wont regain to the full 100 and now just jumping normally uses water?
its a real brain bender, im starting to think its a bug within gms2.
Code:
if place_meeting(x,y+1,o_wall){
water+=0.5/room_speed*60
}
i have created a video showing what i mean, the area towards the end of the video is where i have the problem but i advise watching the entire video so you can see it working. the water level is shown when the sponge fills up with water (blue bar within the player itself)
EDIT i have added a draw_text function (top left ish ) to show my water level.as you can see initially thewateronly regains once the player is on the floor and always goes up to 100, the ground pound move uses a little water but that regains up to 100 and a normal jump uses no water.... once i enter the weird area and do a ground pound the water stops at 99.70 and wont regain to the full 100 and now just jumping normally uses water?
its a real brain bender, im starting to think its a bug within gms2.
Last edited by a moderator: