clickable object display a message and i don't want any

Started by actaria, Sat 27/08/2022 22:35:22

Previous topic - Next topic

actaria

Hello,

There is one new thing i don't manage to do the way i want it to be.

The player has a mouse trap that has to be put on the floor at a specific area.

The area (floor) is an object, it is working well (use inventory on object) then the mouse trap appear on the floor.



The problem i have is that the object (floor) is set on "clickable" and when i click on the object area it display the generic message "i can"t do nothin with that" (it's just an exemple of course).

I don't want any message to be displayed so i set the object on clikacble=false and of course "use inventory on object isn't working anymore because of that.

I also tried with hotspot but it also display a message when you click on the area and i didn"t find a way to make a hotspot not clicbable and i think i should stick with the object solution.

Can you tell me what is the best way to do that and get no message when you click on the object so ou can freely walk around  but still be able to interact with it (use inventory on object).

Thanks a lot once again for your precious help.

Pax Animo

Which game template are you using?

Templates often provide their own way of handling click actions.

If you need to turn hotspots on/off in the future it's done via:

Code: ags
 hotspot["hotspot.id"].Enabled = false;


Misunderstood

actaria

Hello Pax Animo thank you for the reply.

I am using Bass template, this is a good idea i will have a look on options to handle click maybe i will find a way to do it there.

Thanks also for the hotspot on/off command it will be useful later.

If i can”t make it with the template options maybe i will just make the object a bit smaller so the character can easily walk around.

Have a good sunday

Khris

The BASS template uses unhandled_event in the global script to react to interactions that have no event handling set up.
If you want the game to not react at all, simply add the "interact object" event handler and leave the function empty.

SMF spam blocked by CleanTalk