Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

wrapping mouse positions

Hi,

I was wondering how I could "extend" the bounds of the mouse positions.. right now it's bounded by the window so if i keep moving the mouse left it has a max.

the problem is, Im trying to make a game in which i need the mouse to move left (without a bound)

i.e. in Quake, you can continuously move your perspective in one direction without a bound

is this possible by some how moving the mouse (which we have no access to) or after the mouse reaches the left edge of the window it starts over from the right edge?

anything?

thanks!
0
GameHopper
Asked:
GameHopper
1 Solution
 
rascalpantsCommented:
I think you need to make a looping movieclip check the position of the mouse and then use an if statement to make the movieclip do what you want...

so if the mouse position is greater than x do something...


let me know if you need any help with this...

I am not sure how experienced you are, so I just wanted to point you in the right direction...


rp
0
 
henrywwCommented:
hi GameHopper

"mouse reaches the left edge of the window it starts over from the right edge?" <- i don't think that's possible.

i am not sure how u have u game done, but if u have to move the character continuously to the left (or right) when the mouse reaches the edge, it is not that hard, can u show us part of the code (how u move the movieclip) or give us a link to ur swf/fla etc ...

cheers
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now