| 07-11-2008, 02:18 PM | #1 |
So, in a map im making you have a lil pet, and i need a cool way to reward of punish them. I was thinking a "black and white" system where you pat the pet, or smash him up. But, unfortunatley, there is no way to get mouse co-ordinates without hacks... So i need a cheap fix (or otherwise) to make this system. I had an idea to have an un-de-selectable interface unit, and to reward/punish your pet you would click either up and down | or left and right __ respectivley. I could then get the locations of the orders and work out if it was a rough line in either direction. To do this id just have a look at the angle between points and check it against other stuff, blah. You know what i mean, if the angle is less then 30 degrees then its | if its more then 60 degrees then its __. Hows this sound, any other ideas, and what do you think woud be the best way to do this system? |
| 07-11-2008, 04:55 PM | #2 |
All that mouse clicking seems awfully clunky and hard to code. I would use arrows keys, personally. And maybe 2 ability hotkeys. A for Praise, D for punish. Press A, then up, and it pets his head. A then left, pets his flank. And so on. Press D, then right, and it slaps them across the face. And so on again. That's probably the easiest to code, since A and F are abilities and you can just detect the ability being cast, and then allow for arrow key events. |
| 07-13-2008, 08:32 AM | #3 |
=( I want to make it all cool and interactive and dynamic, rather then just hotkeys. I want to give it a realy nice simple interface, and basicly everything to be mouse controled. Hmm, ill do sum tests and stuff. |
| 07-13-2008, 11:17 PM | #4 |
"combos"? |
