Blocker problems in flash game

  • badboy4uro
  • Born
  • Born
  • badboy4uro
  • Posts: 2

Post 3+ Months Ago

Hi everyone

I’m trying to create a game whit mouse control and I’m having some problem creating a blocker.
When I click whit the mouse so that the ball moves form A to B if a blocker is in the way the ball reappears at the starting point and try’s again until you stop it.
Expected: when the ball hits the blocker it should stop.

I used this code for blocker:

if (hitTest(_level0.wall)==true) {
_x=_x-2;

:?: :?: :?: :?:
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

we need a lot more code than that to help you...
  • badboy4uro
  • Born
  • Born
  • badboy4uro
  • Posts: 2

Post 3+ Months Ago

It’s a small game the controller is whit the mouse and I war to make’ it so that if an object is an the way the other object should stop right before.
If the controller was whit the keyboard I cud use the hit test, whit the mouse control it doesn’t work
This is a link to the game http://www.orasulcarei.com/popescu/joc.fla

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 5 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.