My air hockey game is a top down one, and i really need help making the mallets be able to move along the sides of the walls. right now they follow the mouse but stop on contact with the wall. can someone please help?Thanks
Air Hockey Need Help
Started by Nudove, Mar 04 2012 03:35 AM
2 replies to this topic
#1
Posted 04 March 2012 - 03:35 AM
#2
Posted 04 March 2012 - 03:46 AM
You most likely need to set the y-coordinates for the mallet if it won't go up. In the step event, put:
{
move_towards_point(mouse_x,mouse_y,*desired speed*)
}
#3
Posted 04 March 2012 - 04:00 AM
or if you want it instant you can do
x = mouse_x
y = mouse_y
x = mouse_x
y = mouse_y
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











