Author Topic: Mouse Movement  (Read 1541 times)

MattB

  • Member
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Mouse Movement
« on: Fri, Dec 16, 2011 »
Has anyone on here made a game with flixel that features move-to-mouse-click style game play like Diablo or newer Kings Quest games. I'm trying to make a quick adventure game for my dads birthday and need help getting started quickly without testing a bunch of different methods to find what works best.

mightiest_hero

  • Member
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Mouse Movement
« Reply #1 on: Wed, Dec 21, 2011 »
it's doable using flixel

wg/funstorm

  • Global Moderator
  • Key Contributor
  • *****
  • Posts: 596
  • Karma: +0/-0
    • View Profile
    • Funstorm
Re: Mouse Movement
« Reply #2 on: Wed, Dec 21, 2011 »
Flixel Power Tools have a move towards mouse method

http://www.photonstorm.com/flixel-power-tools/flxvelocity

Deathcraft

  • Member
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: Mouse Movement
« Reply #3 on: Wed, Dec 21, 2011 »
The abovementioned FlxVelocity has a moveTowardsPoint method as well, so you may register the mouse click by creating a new FlxPoint and then calling moveTowardsPoint to that Point.