Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 923 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
mouse_ent enhancement #264225
05/05/09 08:26
05/05/09 08:26
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hi,

If I have an entity that is for example a ladder, the mouse_ent function returns only the entity if the mouse cursor is directly on the model, but not if the mouse is between the ladder steps.
That's ok, but it would be great if the mouse_ent function could also react on the bounding box of the model for example if the BBOX flag is set.
In the case of a ladder aiming the entity would be much more easier.

Regards,
Pegamode.

Re: mouse_ent enhancement [Re: pegamode] #264231
05/05/09 09:31
05/05/09 09:31
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline
Serious User
VeT  Offline
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
yes, and some filters for sprites/models/flags would be also nice smile


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: mouse_ent enhancement [Re: VeT] #264326
05/05/09 16:53
05/05/09 16:53
Joined: Jul 2000
Posts: 11,321
Virginia, USA
Dan Silverman Offline
Senior Expert
Dan Silverman  Offline
Senior Expert

Joined: Jul 2000
Posts: 11,321
Virginia, USA
I am no programmer, so I really don't know what I am talking about here, but could you not put an invisible object around the ladder to serve as the thing detected by the mouse cursor?


Professional 2D, 3D and Real-Time 3D Content Creation:
HyperGraph Studios
Re: mouse_ent enhancement [Re: Dan Silverman] #264327
05/05/09 16:57
05/05/09 16:57
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
or, make a trace from camera,to 3d mouse position. traces hit bounding box.


3333333333
Re: mouse_ent enhancement [Re: Quad] #264329
05/05/09 17:05
05/05/09 17:05
Joined: Jun 2008
Posts: 428
Rasch Offline
Senior Member
Rasch  Offline
Senior Member

Joined: Jun 2008
Posts: 428
Thats an old problem which can be fixed at the moment by giving handles. It would be great if it would also check the bounding box like pega said.

even the functions

event_click, event_touch and event_release could need a function like this.

Re: mouse_ent enhancement [Re: Rasch] #264406
05/06/09 06:38
05/06/09 06:38
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
If the target object is behind the ladder, for what purpose do you want to click on the ladder at all?

Re: mouse_ent enhancement [Re: jcl] #264407
05/06/09 07:01
05/06/09 07:01
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
The ladder is the target object ... but a ladder is hard to aim with the mouse so it would be a great effort if mouse_ent could react on the bounding box.

@Quadraxas: that's what I did before the mouse_ent function was added, but I think the mouse_ent function should replace such a code.

Re: mouse_ent enhancement [Re: pegamode] #264413
05/06/09 07:54
05/06/09 07:54
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Ok, I see. Normally the suggestion by Dan Silverman is the way to go, but an invisible object won't react on the mouse either. You have to use an object that is not invisible, but has an all-transparent texture.

Re: mouse_ent enhancement [Re: jcl] #264415
05/06/09 08:06
05/06/09 08:06
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Yes, that would be possible to use an additional object with a transparent texture.

Now the question is could you add some extra features to the mouse_ent function so that it reacts on the BoundingBox when for example the BBOX-flag is set?
In this case I would wait until this feature is implemented (unless it would take too long :-) ). Otherwise I would have to use the workaround mentioned above.

Regards,
Pegamode

Re: mouse_ent enhancement [Re: pegamode] #264417
05/06/09 08:22
05/06/09 08:22
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
then another problem will arise, like what if someone wants to both use BBOX and current behavour of the mouse_ent. maybe a new mouse mode or a new mouse_ent_mode variable may work.


3333333333
Page 1 of 2 1 2

Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1