Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Robert Walter  
#1 Posted : Monday, November 28, 2011 10:31:24 PM(UTC)
Robert Walter

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.

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline Benjamin  
#2 Posted : Monday, November 28, 2011 10:43:33 PM(UTC)
Benjamin

Medals: Admin

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.
Offline bfox  
#3 Posted : Tuesday, November 29, 2011 1:28:33 PM(UTC)
bfox

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) Go to Quoted Post
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 projectsConfused
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.
Давайте делать игры в команде. Идет набор.
Offline Benjamin  
#4 Posted : Tuesday, November 29, 2011 1:49:57 PM(UTC)
Benjamin

Medals: Admin

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.
Offline bfox  
#5 Posted : Tuesday, November 29, 2011 5:22:57 PM(UTC)
bfox

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) Go to Quoted Post
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.
Давайте делать игры в команде. Идет набор.
Offline Benjamin  
#6 Posted : Tuesday, November 29, 2011 5:49:55 PM(UTC)
Benjamin

Medals: Admin

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).
Offline Robert Walter  
#7 Posted : Wednesday, November 30, 2011 1:54:54 AM(UTC)
Robert Walter

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.
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
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.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.068 seconds.