| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 30/08/2008 03:43:18
|
Joe
Joined: 02/06/2008 03:36:22
Messages: 45
Offline
|
To handle Mouse Clicks on Objects, I used the getFaceUnderPoint() and its working great
Is their already a packaged methods for doing this? Like addEventListener? Im curious because its not going to be as easy to do the rollOvers and rollOuts.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 30/08/2008 21:15:17
|
makc
![[Avatar]](/images/avatar/bbcbb1e844266f4abdfc29b3d8a64628607fa47e.png)
Joined: 02/06/2008 12:19:17
Messages: 1704
Offline
|
MouseEvent.MOUSE_MOVE is your only friend here
This message was edited 1 time. Last update was at 30/08/2008 21:15:38
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 31/08/2008 03:31:55
|
Joe
Joined: 02/06/2008 03:36:22
Messages: 45
Offline
|
that's what I figured. Just making sure.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/09/2008 17:02:38
|
wolf
![[Avatar]](/images/avatar/b3f0c7f6bb763af1be91d9e74eabfeb199dc1f1f.jpg)
Joined: 31/05/2008 23:19:38
Messages: 1521
Offline
|
We want to implement full-fledged mouse events in 6.0.
But it's late, therefore we've decided to add at least these methods now.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/09/2008 19:12:47
|
Joe
Joined: 02/06/2008 03:36:22
Messages: 45
Offline
|
Thats cool, at least I can still have interactivity untill then. I created a MouseEvent3D class if anyone is interested.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/09/2008 19:15:12
|
makc
![[Avatar]](/images/avatar/bbcbb1e844266f4abdfc29b3d8a64628607fa47e.png)
Joined: 02/06/2008 12:19:17
Messages: 1704
Offline
|
link? or swap for SpriteMaterial
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 02/09/2008 22:35:38
|
Joe
Joined: 02/06/2008 03:36:22
Messages: 45
Offline
|
Sure, ill post the code as soon as I finish the MOUSE_OVER/MOUSE_OUT types. I'd like to see your SpriteMaterial Makc! I made a MovieMaterial Class, is that the same but with a Sprite?
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 03/09/2008 05:19:09
|
makc
![[Avatar]](/images/avatar/bbcbb1e844266f4abdfc29b3d8a64628607fa47e.png)
Joined: 02/06/2008 12:19:17
Messages: 1704
Offline
|
Not just Sprite, but any DisplayObject. Check it out here. To give credits to the team, it wouldn't be possible without one tiny bit of information - big thanks for that
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 03/09/2008 07:41:42
|
wolf
![[Avatar]](/images/avatar/b3f0c7f6bb763af1be91d9e74eabfeb199dc1f1f.jpg)
Joined: 31/05/2008 23:19:38
Messages: 1521
Offline
|
Makc, thank you for addition. I think it'll be better to override canDraw() method in QuakeTextureMaterial.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 03/09/2008 10:22:25
|
makc
![[Avatar]](/images/avatar/bbcbb1e844266f4abdfc29b3d8a64628607fa47e.png)
Joined: 02/06/2008 12:19:17
Messages: 1704
Offline
|
roger that. over.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 03/09/2008 11:27:41
|
wolf
![[Avatar]](/images/avatar/b3f0c7f6bb763af1be91d9e74eabfeb199dc1f1f.jpg)
Joined: 31/05/2008 23:19:38
Messages: 1521
Offline
|
And one more thing. Don't forget to override clear() if you change behavior of method draw() (like addition DisplayObjects into Skin).
This message was edited 1 time. Last update was at 03/09/2008 11:39:22
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 09/09/2008 19:50:28
|
mariuszkreft
Joined: 04/08/2008 13:12:18
Messages: 10
Offline
|
@J O E
can i get your MouseEvent3D ?
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 08/10/2008 19:58:01
|
Joe
Joined: 02/06/2008 03:36:22
Messages: 45
Offline
|
Hi,
Ill post up the MouseEvent3D as soon as I get a chance. I will also submit an example for you. Maybe by this weekend.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 19/11/2008 22:51:44
|
psychofreud
Joined: 19/11/2008 13:59:14
Messages: 5
Offline
|
Does anyone have a solution here?
The MouseEvent3D.CLICK doesnt really do anything, I get no response.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 19/11/2008 23:09:21
|
Joe
Joined: 02/06/2008 03:36:22
Messages: 45
Offline
|
Are your calling View.interactive = true; ?
|
|
|
 |
|
|