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