MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

Mr. DoAdministrator
MAME Art Editor
Reged: 09/21/03
Posts: 4876
Loc: California
Send PM
Re: Need Help... NBA Jam joysticks 2/4
10/31/20 05:08 AM


> State gets right-aligned for you automatically. You only want one element per
> joystick colour. Instantiate the blue one for players 1 and 2 and the red one for
> players 3 and 4.
>
> edit: Also, using a single space text component like that is an anti-pattern. A fully
> transparent rectangle is better way to force an element to include a certain area in
> its bounds.

Got it "almost" working. Looks great, until both P1 and P2 are active at the same time, then both disappear. Because these are both part of the same Input Port, right? So I need to account for the combination of 9x9 positions for the combined inputs? (e.g. up for both is 0xe0e, so I include the _u.png image in both elements with that state, and so on)?

Is there an easier / more professional / better code way of doing what I'm thinking of here, than having 81 different state/image combinations in the element?

(And on the empty element... makes sense... that will be corrected in files).



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








Entire thread
Subject Posted by Posted on
* Need Help... NBA Jam joysticks 2/4 Mr. DoAdministrator 10/30/20 04:27 PM
. * Re: Need Help... NBA Jam joysticks 2/4 Vas Crabb  10/31/20 04:03 AM
. * Re: Need Help... NBA Jam joysticks 2/4 Mr. DoAdministrator  10/31/20 05:08 AM
. * Re: Need Help... NBA Jam joysticks 2/4 Vas Crabb  10/31/20 11:31 AM
. * Re: Need Help... NBA Jam joysticks 2/4 Mr. DoAdministrator  10/31/20 01:01 PM

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