PDA

View Full Version : So there's Mouse Support now...



ShadowTiger
12-21-2007, 05:43 PM
[16:34] <ShadowTiger> * Complemented the InputX and InputY Link scripting variables with InputZ (scroll wheel) and InputB (button mask).
[16:35] <ShadowTiger> Yeah, ZC has mouse support now via scripting,
[16:35] <ShadowTiger> so it's technically possible to, say,
[16:35] <ShadowTiger> circle a boulder with the mouse,
[16:35] <ShadowTiger> then click on it,
[16:35] <ShadowTiger> and the boulder can explode.
[16:38] <Geecku> or click to place bomb
[16:38] <Geecku> and boom
[16:38] <Geecku> that might be kinda fun
[16:38] <Geecku> if used the right way
[16:38] <ShadowTiger> Now I'm thinking of how the script would work right now.
[16:39] <ShadowTiger> It would be done with three conditions:
[16:39] <ShadowTiger> 1) Done clockwise. That depends on the following two points:
[16:40] <ShadowTiger> 2) Firstly, it would need to be within a minimum and maximum amount of pixels DISTANCE from the item you're circling. I.e. it'd have an " 5 >= x <= 50"
[16:40] <ShadowTiger> .. as its distance calculator.
[16:40] <ShadowTiger> AND,
[16:40] <ShadowTiger> 3) It would check to see for the position of the cursor if it is FIRST positive X and Y, then postive X and negative Y,
[16:40] <ShadowTiger> then negative both, then negative X and positive y.
[16:41] <ShadowTiger> Then, maybe, both positive again, and Then, if that is true, a flag is enabled,
[16:41] <ShadowTiger> which means that if you click within the space the combo is in,
[16:41] <ShadowTiger> It could trigger a secret flag or something.
[16:41] <ShadowTiger> one or more of the conditions aren't true, nothing would happen.
[16:42] <Geecku> now to undo bringing up the ZC menu with it
[16:42] <Geecku> cause otherwise
[16:42] <Geecku> when you click
[16:43] <Geecku> it'll just pause the game
[16:43] <Geecku> still
[16:44] <Geecku> won't the screen go monochrome with a menu at the top and pause?
[16:44] <ShadowTiger> If you click? ... Hm. That's a good point, actually.

Gleeok
12-21-2007, 10:17 PM
So what's this InputB (button mask)?


Also right now I'm picturing people getting way too creative with minigames in the future.


...hmm, I might make a three card monty ffc minigame as the final battle against good and evil using this.

_L_
12-22-2007, 12:11 AM
Obviously, an option needs to be added where left click->pause is replaced with Esc->pause.

Imprisoned
12-22-2007, 07:33 AM
Someone's forgetting this is *SUPPOSED* to be Zelda...

I wouldn't use it in quests. No. It would ruin the fun of button mashing and it wouldn't
feel like a 2d video game so much anymore. But for some minigames, I say, hell yeah...

ShadowTiger
12-22-2007, 10:21 AM
... ... But Phantom Hourglass is a Zelda game ... ...

The_Amaster
12-22-2007, 06:41 PM
Yeah my first thought wasn't PH admittadly, but stuff like using the cursor in WW to select multiple targets for the boomerang.(Come to think of it, TP too)

Revfan9
12-23-2007, 06:33 AM
...Good to know that my dreams of making a Bishudo game in ZC can finally become a reality.

punkonjunk1024
01-02-2008, 05:35 PM
dude, what? ZC is amazing. is there a Zscript database or anything?

Russ
01-02-2008, 07:00 PM
Is there a Zscript database or anything?
There should be. Right now the script showcase forum sort of works as a script database, but there should be a real database. Anyone agree with me?

DarkDragon
01-02-2008, 07:09 PM
Sigh. Nag me after the SIGGRAPH deadline (Jan 23) and I'll code up an extension of the QDB for scripts.