Software Support > GroovyMAME

Lightgun flasher over groovymame in fullscreen

<< < (12/17) > >>

phasermaniac:
On another hand I see the "gain until release" a little useless. I mean, you always want to keep the flasher the shorter possible because its annoying and it doesn't let you see the game itself.
Yesterday I was playing Operation wolf, Space gun and mechanized attack, which are machine gun mounted games, and I think for these, instead of gain until release, would be perfect a "autofire" option, I mean:
Create a loop whenever the button is pressed that launches the fixed frames gain each x frames.

Just an idea

psakhis:
Are you tried different configs with some button lag for reload?

Now guncode_offset plugin works as:
 - On the frame when button is detected, if this is a offset button, isn't setting any value for it (pressed or not)
 - If button lag is added, all the frames before the lag are set to 0 (non pressed)
 - Gain or not is applied with fixed frames or until release methods (no changes here)
 - At the end of the frame, if this is a offset button and all the lag is over, plugin reads coords(x,y) for set pressed or not, if reads -65536 is considered pressed
 


phasermaniac:
Yes I tried different configs to be sure.
In fact I create two "gunlight buttons", one for PX Trigger and the other for P1 Reload, both with the same "gun button", one with offset yes and the other no. And tested adding lag, but same problem.
The problem is the frames after the flash I think should be set to 0 (non pressed).
The rest I think it's ok

psakhis:

--- Quote from: phasermaniac on November 13, 2022, 03:30:53 pm ---The problem is the frames after the flash I think should be set to 0 (non pressed).

--- End quote ---
Do you think this only for reload button (offset mapped button) or for everything?

phasermaniac:

--- Code: ---if button.method == "first" then
if not gain_applied then
if button.counter == 1 then
num_frames_gain = button.off_frames
else
return 0
end
end
end

--- End code ---
seems to do thee trick, gonna test.
Now that you have developed more code, I begin to understand it, but there are things I still miss.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version