Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Need help with the Credits Script by Midas Mike!

Please please please i need help with this!!!
I can't figure out how to make it display tons of pictures... I'll just show you what I mean:

Code:
 @backgroundList = ["#7"] #Edit this to the title screen(s) you wish to show in the background. They do repeat.
So how do I get em to repeat? do I add in commas, periods, anything of the sort?
Because I have #1-#7 so I want them all to "repeat".
Thanks for your support.
 

khmp

Sponsor

I don't know the script but if you are asking how to add more items into @backgroundList. You are correct in saying you can put a comma between the items. So if you have 7 pictures I guess.

Code:
@backgroundList = ['#1','#2','#3','#4','#5','#6','#7']

Some of the more proficient Ruby people might know a shortcut but I know the above code will also work.
 

khmp

Sponsor

I found the script I believe you are using over on Creation Asylum. And two lines below the one that creates the array that holds the pictures is the one that holds the time it uses to display each picture.

Code:
@backgroundG_BFrameCount = 3.4

Change 3.4 to something much higher if you want the pictures to stay on longer amounts of time. Woops I see you meant you solved it :) My apology.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top