Attract-Mode Support > Scripting

advanced progres bar

<< < (2/9) > >>

rand0m:
Good job Jedione. I also worked on indicator/ progress bar last week for RetroMania theme. Check it out > https://www.youtube.com/watch?v=bZ9CDi08Vec

zpaolo11x:
I think that most of the problems you have with my code (which is very rude anyway) is that it's not built to work with shuffle, I have no idea how shuffle works. The code updates only the current and previous letters based on ToNewSelection transitions to be less resource heavy, alternatively you can clean up all the letters and "light up" the current one, but you need to find the proper trigger for that in shuffle mode.

Just to be sure, the routine detecting the current letter is working right?

jedione:
at   rand0m

interesting that is exactley....like mine to   
it will be in the aura theme   
check it out...we must want some of the same things...

you tube...https://youtu.be/lg1gA9azSRs

keilmillerjr:
@jedione Just the other day i made a small snippet of code for rand0m on discord to extract the letters and other characters using regex. This feature has nothing to do with shuffle, and should be implemented separately.


--- Code: ---firstLetter(){
  local firstChar = rstrip(fe.game_info(Info.Title)).slice(0,1);
  local expression = regexp(“[a-zA-Z]”);
  expression.match(firstChar) ? return firstChar : return “#”;
}

--- End code ---

If you want to not display a whole alphabet, should probably white a separate function with similar logic to shuffle? Ill work on making shuffle not loop soon. Will connect computer tonight. Just moved and been busy.

jedione:

--- Quote from: jedione on April 13, 2019, 07:09:00 AM ---at   rand0m

interesting that is exactley....like mine to   
it will be in the aura theme   
check it out...we must want some of the same things...

you tube...https://youtu.be/lg1gA9azSRs

--- End quote ---

Yes.   the code works, like a charm... 

that was a just off the cuff test thinking on how to do this, because i know no other,,,way

i will probley be stuck here on this for a wile...im by no means a coder,    just sometimes

try to be savvy with others codes to make things work... or revers engineer.

any way thanks for your input.   if ya have any moor ideas  or figure out how to do this,,

a big thanks bro... ;)         ill mess with it some more this weekend.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version