Jump to content


Photo

Air Hockey Need Help


  • Please log in to reply
2 replies to this topic

#1 Nudove

Nudove

    GMC Member

  • GMC Member
  • 11 posts
  • Version:GM8

Posted 04 March 2012 - 03:35 AM

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
  • 0

#2 trivettz

trivettz

    GMC Member

  • New Member
  • 17 posts
  • Version:GM8

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*)
}

  • 0

#3 kupo15

kupo15

    GMC Member

  • GMC Member
  • 400 posts

Posted 04 March 2012 - 04:00 AM

or if you want it instant you can do
x = mouse_x
y = mouse_y
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users