Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
Beware click behavior, assign it to a model, now mouse down somewhere else, drag to model, mouse up, click behavior triggers!

bracer
Registered User
Quote
2020-06-16 23:38:04

Be careful of this the built in (When clicked on this do something) behavior is broken and presently there is no other way to do this beside this behavior !

Assign this behavior to a model, then, instead of clicking on the model, you mouse down SOMEWHERE ELSE and then while the mouse is still down, you drag your mouse over to that model and mouse up !

The model's on click behavior will trigger !
That is REALLY MESSED UP !

So basically this is NOT a click behavior, but a mouse up ONLY behavior !

If this is to be the way it is, then it should be renamed as mouse up behavior along with access to mouse down and mouse over behavior FOR MODELS.

This is such a heavy bug that it should really be fixed.


just_in_case
Moderator
Quote
2020-06-17 05:52:40

Maybe one can script when click on this behavior also....by checking collision of the model with the mouse cursor....

There is example already available in the documentation which will trun a red rectangle into blue while mouse over... So that can also be used along with the mousedown and up events...
To script something other than the inbuilt behavior....

Just now i go through an old post of mine where you once asked me that can we become freinds? But you had deleted that post before i can write the answer but i had already given you an answer over there...but i think you have missed mine reply there...
So here am answering to rjat question again....

We arre already friend...i am a subscriber of your youtube channel and watched some of intresting videos of yours😁😁😁 regarding to have the video interview... My english isn't that good so i am unable to do that sorry for that...😔😞 english isn't ky native language and am not that good in speaking english😉😉 hehe...

I have always found you more intelligent than me



bracer
Registered User
Quote
2020-06-17 14:12:15

Wow, I actually forgotten about that because since you didn't reply, I delete it to forget about the feeling of unreciprocated love.

You are actually smarter than me because that last question about detecting when a texture animation is complete, your answer completely went over my head.

Back to the technicals:
Just to get an accurate mouse click going on (you mouse down and mouse up on the same item), we need to litter our codes everywhere in:
When a key is pressed do something :: Left Mouse Down :: Key Pressed Down
&
When a key is pressed do something :: Left Mouse Down :: Key Left Up
Which by the way ONLY WORKS in Mac or Windows.

We can monitor ccbRegisterOnFrameEvent all we like, but the fact that we do not have a universal code based mouse event detector makes the whole thing very clucky.

All because the on click behavior doesn't actually behave correctly.

Hope Niko will fix the on click do something behavior and give the option to trigger on mouse down or mouse up.
The current situaion where you can mouse down somewhere else, drag into the button, mouse up and it trigger is wrong, this implementation is just wrong.


pmax
Registered User
Quote
2020-06-17 16:07:03

I recommend you to go to see the script " behavior_moveObjectByPositi.js " to see the operation of the mouse click event etc...


bracer
Registered User
Quote
2020-06-18 17:54:26

pmax...
Thank you :D


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact