Author Topic: randomly named project that uses a mouse  (Read 6334 times)

SmartBoy16

  • Contributor
  • Fanatic
  • **
  • Posts: 587
  • Looking for inspiration.....
    • View Profile
    • Email
randomly named project that uses a mouse
« on: 2007-08-27, 08:56:07 AM »
here is a project i made in my spare time. i'm still having problems steering and shooting

anybody know what's wrong ???
Looking to the skies.....

tprime

  • Fanatic
  • ***
  • Posts: 395
    • View Profile
    • Email
Re: randomly named project that uses a mouse
« Reply #1 on: 2007-08-27, 09:31:35 PM »
I don't see a problem! :D

SmartBoy16

  • Contributor
  • Fanatic
  • **
  • Posts: 587
  • Looking for inspiration.....
    • View Profile
    • Email
Re: randomly named project that uses a mouse
« Reply #2 on: 2007-08-28, 08:59:02 PM »
if you go too fast to the right or the left it won't move. plus the bullets only shoot where the current mouse position is
Looking to the skies.....

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: randomly named project that uses a mouse
« Reply #3 on: 2007-09-02, 10:39:16 AM »
Why not make it aim at the current mouse position instead of just turning when the mouse moves?  What's the point of using the mouse if you're just going to use it like a joystick?

SmartBoy16

  • Contributor
  • Fanatic
  • **
  • Posts: 587
  • Looking for inspiration.....
    • View Profile
    • Email
Re: randomly named project that uses a mouse
« Reply #4 on: 2007-09-03, 01:51:07 PM »
for a game i will make using this method, it will be alot easier to steer the sprite rather than move the sprite to the location. plus i've many other games that use this method (pressing W to move and left and right to steer) and it seems a lot easier to use.
Looking to the skies.....

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: randomly named project that uses a mouse
« Reply #5 on: 2007-09-03, 04:19:53 PM »
That doesn't seem like a mouse-oriented task.  I'd suggest using a keyboard or game controller for that kind of thing instead.  The problem is the mouse coordinates you're getting are limited to a 640x480 pixel area, and once the mouse reaches the edge of the screen, it can't move any more.  Other controls don't have this problem.