Delta Engine
»
Support
»
Input
»
Billboard clicked/touched
Joined: 8/24/2011(UTC) Posts: 68
Thanks: 4 times
|
Maybe a dumb question. But I wonder if there is a way to ask a Billboard or Material2D if it is clicked / touched? So far I check if the Click / Touch happened within the coordinates my objects are. For rectangle objects that's no problem, although not very nice, I think. But now I have some billboard objects which are rotated.
|
|
|
|
Medals:  Joined: 8/20/2011(UTC) Posts: 1,421 Location: Hannover
Thanks: 18 times Was thanked: 97 time(s) in 92 post(s)
|
No, there are no events (except maybe for some cameras) in Delta.Rendering. For event driven programming you should really use Delta.Scenes. Check out the samples in Delta.Scenes.Tests and ask ahead if you need help with them. UI Controls (labels, buttons, images, textboxes, etc.) have plenty of events.
|
|
|
|
Joined: 8/22/2011(UTC) Posts: 170 Location: Moscow
Thanks: 3 times Was thanked: 2 time(s) in 2 post(s)
|
Originally Posted by: Benjamin Nitschke (DeltaEngine)  No, there are no events (except maybe for some cameras) in Delta.Rendering. For event driven programming you should really use Delta.Scenes. Check out the samples in Delta.Scenes.Tests and ask ahead if you need help with them. UI Controls (labels, buttons, images, textboxes, etc.) have plenty of events. using Delta.Scenes not available for use in non test projects and Delta.Scenes.Tests have miss content Edited by user Tuesday, November 29, 2011 1:29:45 PM(UTC)
| Reason: Not specified |
Russian game developer. Давайте делать игры в команде. Идет набор. |
|
|
|
Medals:  Joined: 8/20/2011(UTC) Posts: 1,421 Location: Hannover
Thanks: 18 times Was thanked: 97 time(s) in 92 post(s)
|
Sure it is available, all you need to do is to reference Delta.Scenes and Delta.Scenes.UserInterfaces.
We already commented out tests that have missing content, all the rest works fine.
|
|
|
|
Joined: 8/22/2011(UTC) Posts: 170 Location: Moscow
Thanks: 3 times Was thanked: 2 time(s) in 2 post(s)
|
Originally Posted by: Benjamin Nitschke (DeltaEngine)  Sure it is available, all you need to do is to reference Delta.Scenes and Delta.Scenes.UserInterfaces.
We already commented out tests that have missing content, all the rest works fine. How to reference Delta.Scenes and Delta.Scenes.UserInterfaces ? Billboard I will keep the coordinates of all Billboards in the collection. And I will make the search method. Edited by user Tuesday, November 29, 2011 5:24:32 PM(UTC)
| Reason: Not specified |
Russian game developer. Давайте делать игры в команде. Идет набор. |
|
|
|
Medals:  Joined: 8/20/2011(UTC) Posts: 1,421 Location: Hannover
Thanks: 18 times Was thanked: 97 time(s) in 92 post(s)
|
Right click your project "References" and add the assemblies you want from \Delta\Dlls (our use the projects if available if you want to change the engine).
|
|
|
|
Joined: 8/24/2011(UTC) Posts: 68
Thanks: 4 times
|
Thanks! I'm now using the Input.Mouse.InBox(myBox), where myBox is kind of a bounding box of the billboard object. Works fine for me.
|
|
|
|
Delta Engine
»
Support
»
Input
»
Billboard clicked/touched
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.