• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML physics question :3

T

theraje3

Guest
Hi there i have a question.
Imagine I have obj_A which is a physic object (ball)
and i have obj_B which is not ... (barr)

Is it posible to send obj_A to obj_B , collide and turn back ?
(making PONG game)

At the moment my obj_A fly to obj_B and pass it trought.

I need help im learning gml :x thank you all and sorry for my bad english :(
 

Attachments

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
You can make the ball check for whether it have hit the barr yet using place_meeting, but an easier choice would be to make the barr a static physics object (set "Density" to 0 in object editor) and move it by changing phy_pos_x/phy_pos_y.
 
T

theraje3

Guest
Yey it works! thank you so much.:)
 
Last edited by a moderator:
Top