Hello,
I just started playing with this wonderful program for about 3 months and boy... does it give you some brain twisters.
I have the following problem that I don't really understand how to approach.
I'm making sort of a pong game and there are power-ups. One of the power-ups enlarges the paddle. All good till now.
If I take this power-up near a wall (oWallV) the animation (which is just image_speed = 0.5 until I get to the desired frame) makes the paddle go through the wall.
I tried this:
if (place_meeting(x+sprite_width/2,y,oWallV)) {
while !place_meeting(x+sprite_width/2,y,oWallV) {
image_speed = 0.5
} image_speed = 0
}
And it works! As long as I'm not on the left side of the room...
How do I handle this??
Kindly,
Radu
I just started playing with this wonderful program for about 3 months and boy... does it give you some brain twisters.
I have the following problem that I don't really understand how to approach.
I'm making sort of a pong game and there are power-ups. One of the power-ups enlarges the paddle. All good till now.
If I take this power-up near a wall (oWallV) the animation (which is just image_speed = 0.5 until I get to the desired frame) makes the paddle go through the wall.
I tried this:
if (place_meeting(x+sprite_width/2,y,oWallV)) {
while !place_meeting(x+sprite_width/2,y,oWallV) {
image_speed = 0.5
} image_speed = 0
}
And it works! As long as I'm not on the left side of the room...
How do I handle this??
Kindly,
Radu