MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

Mr. DoAdministrator
MAME Art Editor
Reged: 09/21/03
Posts: 4876
Loc: California
Send PM


Artwork and 8-Way joysticks
#373837 - 02/11/18 04:10 AM



So as we start updating more artwork again to include control panels, we want to map all the controls so they are animated on screen.

Buttons are easy enough; set the element to have different PNG for states 0,1; map the element to the proper inputtag and inputmask as stated in the driver, and you have animated buttons.

4-Way joystick... same thing; each direction is essentially a button (a single input); so those will work just fine also.

8-Way joystick... is there a way to do this today, that I'm just not thinking about correctly?

Each diagonal is essentially turning on two different inputs; can I define the inputmask for an element as two inputs are on at the same time?

On YouTube, a couple users have shown a "workaround," but I don't like it. The workaround is to define the Player2 Up,Down,Left,Right as the diagonal inputs for Player1; you then use the input mask for Player2 joystick in the LAY file.

So...you now can have an 8-way joystick on screen, and it looks correct... but only for Player1; you can't even map Player2 now, because you have screwed with the CFG file for the game. Additionally, the artwork doesn't work by default "out of the box," which is no good in the first place.

If there isn't a solution, is it possible to add support for (without breaking other things, of course)?




RELAX and just have fun. Remember, it's all about the games.




Nightvoice
MAME Fan
Reged: 03/19/10
Posts: 883
Loc: The Room Next To You
Send PM


Re: Artwork and 8-Way joysticks new [Re: Mr. Do]
#373839 - 02/11/18 04:35 AM


On that note, the biggest problem I had with animating joysticks is shadowing. What's the trick? Any time I set up a graphic with a semi-transparent shadow, no matter how faint, it does not look like a shadow when rendered in MAME, rather a light grey cloud over the background. This is why when I've shadowed gearshifts, I've had to incorporate a piece of the background into the control or it just looks shitty. Are there specifics to this that I need to know?



----------------------
I have officially retired from sucking at everything I do. Life is much easier now.

My MAME/MESS artwork files: https://drive.google.com/open?id=1ABxeKgNIrKlIsyck7dx4V241NFQDWAF4
Related screen shots: https://drive.google.com/open?id=1U5IbvbVzYW97PuOOQuocvZFE_YJz7WIn


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 251 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 427