RicoRob

Veteran
Veteran
Joined
Apr 28, 2016
Messages
62
Reaction score
4
First Language
Portuguese (Br)
Primarily Uses
RMMV
I have an event that plays a BGS, but I want it to play only during 30 seconds.


BUT when I add the Fadeout command the BGS don't even play...


Sem título.png


Please, help?
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,935
Reaction score
14,767
First Language
English
Primarily Uses
RMVXA
Fadeout BGS tells the system to start fading it out right then and there, not wait 30 seconds then fade it out. If you want it to only play for exactly 30 seconds you would have to do


Play BGS.


Wait(1800) frames (you can't do 1800 in one command, so split this up as needed)


Fadeout BGS 1 second.


Though...be advised that all attempts to time it for exactly 30 seconds is very dependent on how fast the game runs. If the game runs at say 30 FPS instead of 60 FPS, what I posted here will have it wait 60 seconds and not 30. However, there is no way around that (that I know of) short of make sure your game can run at the default speed of 60 FPS.
 

RicoRob

Veteran
Veteran
Joined
Apr 28, 2016
Messages
62
Reaction score
4
First Language
Portuguese (Br)
Primarily Uses
RMMV
Sorry, I didn't add the why of the fadeout.


It's a race, the player will still be able to move around, so I can't use the wait command :(


I don't want the fadeout to activate after 30 seconds, I'm trying to make the BGS starts fading out right after it starts playing
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,935
Reaction score
14,767
First Language
English
Primarily Uses
RMVXA
Use what I posted as a parallel process when the race starts (make sure it is triggered by a switch, which you turn off once the race is over). It will work then. Otherwise, even if you get a 30 second fadeout working, the last 15 seconds or so are going to be unhearable, due to how faint they are.
 

Latest Threads

Latest Profile Posts

Another comic with Backstage Malak...
If you want to ask him anything, you can ask on my DeviantArt page! I'm not sure if you're allowed to do it here.
Forum tip of the day ...
If you get a temporary suspension for being a jerk to people who are trying to help you, and arguing with mods and admins, don't go making new accounts. Chances are, if you p**s us off enough to suspend you for a week, we're not going to hesitate giving you a permanent ban when you give us a reason.
E_6fAErVkAQILXu.png
I'm so close to releasing my game on steam! :blush::blush::blush:
Us:
"This game is awesome! I wish there are more games like this in the future."
Also us:
"I hate how games stopped being original and start copying other successful games."
Should've done this a few days ago but...
PRI_200136808.jpg
Rest in Peace, Sir Clive Sinclair
1940 - 2021
Entrepreneur, Technologist, Father of the Modern British Computing Industry, and protagonist of Legend of ZUN.

Without you, England's games and tech industry wouldn't be where it is.

Forum statistics

Threads
115,287
Messages
1,088,653
Members
149,913
Latest member
badalias
Top