
Quote from LeMachinga on May 3, 2022, 12:36 pmGreetings, Luis and friends of VisualNeo.
I'm already on my third Steam game made with VisualNeo, and although I've been working with Neobook/VisualNeo since 96/97, I don't remember if it's possible to assign a key to be able to press an image?
Is it possible to assign a key to be able to press an image? The problem comes to me because the code is when pressing images and not buttons, and I want the code of an image to be executed when a certain key is pressed. I know I can put on top of the image a transparent button with the code, but the screen is very cluttered with buttons and images, and also these must appear and appear quickly while pressing the player. The ShowObject and HideObject commands already take a little (but very little) when the player clicks, nothing serious, but if I also have to add more buttons that do this, maybe the game is a little slow for my taste.
And by the way: Is there any way to use Drag & Drop in elements like buttons or images or is it only useful for Texts?Thank you very much for everything, and sorry for the inconvenience.
****************************************************
Saludos, Luis y amigos de VisualNeo.
Ya voy por el tercer juego para Steam hecho con VisualNeo, y a pesar desde que llevo trabajando con Neobook/VisualNeo desde el 96/97, no recuerdo si:
- ¿Es posible asignar una tecla para poder pulsar una imagen?. El problema me surge porque el código está al pulsar imágenes y no botones, y quiero que el código de una imagen se ejecute cuando pulsa determinada tecla. Sé que puedo poner encima de la imagen un botón transparente con el código, pero la pantalla está muy recargada de botones e imágenes, y además estas deben aparecer y aparecer rápidamente mientras pulsa el jugador. Los comando ShowObject y HideObject ya tardan un poco (pero muy poco) cuando pulsa el jugador, nada grave, pero si además debo añadir más botones que hagen esto , ya quizá el juego vaya algo lento para mi gusto.
- Y ya de paso: ¿Hay alguna forma de usar Drag & Drop en elementos como botones o imágenes o solo sirve para Textos?
Muchas gracias por todo, y disculpad las molestias.
Greetings, Luis and friends of VisualNeo.
I'm already on my third Steam game made with VisualNeo, and although I've been working with Neobook/VisualNeo since 96/97, I don't remember if it's possible to assign a key to be able to press an image?
Is it possible to assign a key to be able to press an image? The problem comes to me because the code is when pressing images and not buttons, and I want the code of an image to be executed when a certain key is pressed. I know I can put on top of the image a transparent button with the code, but the screen is very cluttered with buttons and images, and also these must appear and appear quickly while pressing the player. The ShowObject and HideObject commands already take a little (but very little) when the player clicks, nothing serious, but if I also have to add more buttons that do this, maybe the game is a little slow for my taste.
And by the way: Is there any way to use Drag & Drop in elements like buttons or images or is it only useful for Texts?
Thank you very much for everything, and sorry for the inconvenience.
****************************************************
Saludos, Luis y amigos de VisualNeo.
Ya voy por el tercer juego para Steam hecho con VisualNeo, y a pesar desde que llevo trabajando con Neobook/VisualNeo desde el 96/97, no recuerdo si:
Muchas gracias por todo, y disculpad las molestias.

Quote from Vadim on May 3, 2022, 5:35 pm@lemachinga
The Picture object has a programmable left-click and right-click event, just like the button.
If you need a hotkey, you can set it using NeoBookKB 1.1 plugin (NeoSoft Corp.) or NeoKB (SinLios). This will execute the subprogram you need.
The Polygon object also has drag-and-drop functionality. You can place an image in it and use it instead of the Picture object.
The Picture object has a programmable left-click and right-click event, just like the button.
If you need a hotkey, you can set it using NeoBookKB 1.1 plugin (NeoSoft Corp.) or NeoKB (SinLios). This will execute the subprogram you need.
The Polygon object also has drag-and-drop functionality. You can place an image in it and use it instead of the Picture object.

Quote from LeMachinga on May 3, 2022, 8:00 pmThank you, Vadim, that is very useful for me.
Thank you, Vadim, that is very useful for me.

Quote from rcohen on May 6, 2022, 12:46 amQuote from LeMachinga on May 3, 2022, 8:00 pmThank you, Vadim, that is very useful for me.
Be aware that setting hotkeys using NB KB (not sure about NeoKB) will set a GLOBAL hotkey which will respond from any other software that is running. If you need a local hotkey only that responds ONLY in your specific PUB, then you might check out Smart Objects https://zmware.rcmediaservices.net/smart-objects/ which offers a LOCAL hotkey option.
Quote from LeMachinga on May 3, 2022, 8:00 pmThank you, Vadim, that is very useful for me.
Be aware that setting hotkeys using NB KB (not sure about NeoKB) will set a GLOBAL hotkey which will respond from any other software that is running. If you need a local hotkey only that responds ONLY in your specific PUB, then you might check out Smart Objects https://zmware.rcmediaservices.net/smart-objects/ which offers a LOCAL hotkey option.