|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming | |
Flash - how to make something follow the cursor??
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
PC Gamer
|
I need to make a hand follow the cursor. Not trail behind it, but stay in one place and just point towards the cursor. I did this before but now completely forgot. And I can't find anything that works online. I need the simplest solution.
If it makes a difference, the mouse is hidden and there is a crosshair instead. This is for a game I'm making, thanks.
__________________
[CS:S Gun Game (ADMIN)] [My CPU-Z] [FAQ - How to make a portable USB charger] [OCN Wallpapers] [OCN Wallpapers 2] [OCN Wallpapers 3]
|
|||||||||||||
|
|
|
|
#2 (permalink) | |||||||||||||
|
Apple Doesn't Love You
|
I don't use flash, but there should be a method to return the x/y position of the cursor. Just make an object follow those coords
|
|||||||||||||
|
|
|
|
#3 (permalink) | |||||||||||||
|
PC Gamer
|
You see, I heavily edit code, I can't write it from scratch yet, so I'd need an example and then I'd rewrite it to my needs.
__________________
[CS:S Gun Game (ADMIN)] [My CPU-Z] [FAQ - How to make a portable USB charger] [OCN Wallpapers] [OCN Wallpapers 2] [OCN Wallpapers 3]
|
|||||||||||||
|
|
|
|
#4 (permalink) | |||||||||||||
|
Apple Doesn't Love You
|
|
|||||||||||||
|
|
|
|
#5 (permalink) | ||||||||||||
|
Overclocker
Join Date: Oct 2006
Location: Levittown,PA / Penn State
Posts: 1,779
Rep: 77
![]() Unique Rep: 68
Trader Rating: 0
|
_x = _xmouse
_y = _ymouse it's been a while, but i believe that still works
__________________
|
||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|