|
|
#1 |
|
Procrastination Incarnate
Development Director
|
This little testmap is a preview of a fighting sidescroller game I am developing.
It features a control scheme of arrow keys and mouse buttons; the engine can distinguish between left and right mouse button clicks, however it can not get the coordinates of a rightclick; also, if the player clicks on the cancel button that counts as a rightclick too. Some credit goes to Toadcop here, I have reverse-engineered this method of distinguishing left and right mouse button clicks after I've seen it used in his TCX map. Also of note is a hp and mana display system that uses the item inventory; it will look quite cool once the map starts using a custom user interface. Last edited by Anitarf : 10-10-2009 at 10:38 AM. |
|
|
|
| Sponsored Links - Login to hide this ad! |
|
|
|
|
#2 |
|
User
Join Date: Nov 2006
Posts: 199
![]() ![]()
|
I didn't get any false right clicks when I tested this.
I realize this is a test map, but it is possible to enter the boundary of the map. Edit: I changed the Footman's acceleration to 1600 and I got false-right detection clicks. When I would jump it would make two effects and when I landed it made one. I'm assuming this is what you mean? I changed the CANCEL_MARGIN to 0.2 and I was still able to get false detection. Changing it to 0.4 eliminated them in this case (I didn't test 0.3). Last edited by Veev : 02-11-2009 at 12:47 AM. |
|
|
|
|
|
#4 | |
|
Procrastination Incarnate
Development Director
|
Quote:
|
|
|
|
|
|
|
#9 |
|
User
Join Date: May 2007
Posts: 646
|
I'll try this when I get a chance, but this is only really novel for detecting clicks.
__________________EDIT: Owh, wow. I see why this is cool. Are you releasing it as an engine or for a project? Last edited by PenguinEmperor : 02-12-2009 at 08:06 PM. |
|
|
|
|
|
#10 | |
|
Procrastination Incarnate
Development Director
|
Quote:
Also, I updated the map with collision detection. |
|
|
|
|
|
|
#12 | |
|
User
Project Member: LoC
Join Date: Dec 2007
Posts: 756
![]()
|
Quote:
Funny, I thought exactly the same. Except the thing with Super Smash Bros. |
|
|
|
|
|
|
#14 |
|
Procrastination Incarnate
Development Director
|
Note that rightclick cannot detect the coordinates with this method, so you'd either need to follow it up with a leftclick or make it dependant on current speed/which arrow keys are currently pressed.
__________________ |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
|
Donate |