|
Post by sbdjazz on Mar 28, 2017 16:53:32 GMT
How can I do that using scripts? Thanks.
|
|
|
Post by indiedev on Mar 29, 2017 2:54:13 GMT
why scripts? can use just EventOnInputs
|
|
|
Post by sbdjazz on Mar 29, 2017 14:01:22 GMT
I need to use keyboard controls. On a select and accept basis.
|
|
|
Post by Power Supersport on Mar 29, 2017 15:15:35 GMT
Every sprite has a property "Mouse-over Flag", which detects if the sprite is hovered by the mouse... Note that this only works if you check the "Detect mouse-over event" in the sprite's settings... The property returns 1 for hover, and 0 for no hover... Then you can do the following logic:
if (IN_1 > 0) { // If an element is hovered if (iMouseButtonClick (0)) { // If the mouse button is pressed // Do your stuff... } } That pretty much wraps my answer, because that's all that needs to be said... Everything else like designing the menu depends on you...
|
|
|
Post by indiedev on Mar 30, 2017 2:41:11 GMT
I need to use keyboard controls. On a select and accept basis. well good luck with that, can only use hotkeys like 'press 1 to turn sound off' etc. there may be ways to implement key navigation but you'll have to use your imagination as no built in scripts meant specifically for it.
|
|
|
Post by GH Games on Mar 30, 2017 8:06:37 GMT
Do you mean something like this? Where you use the arrow keys (I know this guy is on Xbox I'm on about the PC version) to navigate through the different "pages" let's call them. If so that's a pretty cool idea! Probably not one for 3D Rad unless you only have 2 or 3 pages. Any more might be a bit of a hassle. If you aren't on about this then what do you mean bro?
|
|
|
Post by sbdjazz on Apr 1, 2017 18:27:38 GMT
Ok, I fixed our menu and can be controlled by keyboard arrow keys to navigate through it. Thanks!
|
|
|
Post by indiedev on Apr 2, 2017 12:46:05 GMT
i don't know how you did it, but i can and would've done it completely without scripts myself.
|
|