Hi guys, new user of vx ace here, loving it so far, still learning it all though, and I've got stumped on something that I'm sure is obvious to fix lol
Anyways this is what I'm trying to do:
I made an animated tv showing static (& a tv turned off tile for when its off), and I want to have it automatically play my "tv static" BGS as soon as you wake up in the room, and theres a tv blaring static so you go turn it off.. and can even turn it back on again to replay the sound and animation etc
I'm just stumped on how to have the BGS automatically turn on by itself, and then have an event on the same item (the tv) available to action click to turn it off, and I also want it to stay off if I left the room and came back etc. Having it play as the BGS for the map didnt work because it just starts over if I leave and come back.
I did manage to have the BGS playing but then the 2nd event page on the same item isn't clickable, plus if I swap event pages things also change :/ can you tell Im a noob yet lol
Cheers for any help.
Why not play a BGS using another event? then use switches to manage the activation and such
For the music event, you will use a switch as a condition, maybe set it as parallel process which plays the sound every now and then (because I don't think you wanna use autorun then erase event for this)... don't worry, playing an already playing sound will just continue it...
Then make sure the switch is ON when the tv is off... then just turn it off when the TV is on, and also call stop BGS...
and post the pics of the event pages if it doesn't work... 🙂
the 2nd page will always be the one to show since it is higher in number and doesn't have any conditions in it... so you need to switch them out... also, it should be set to Action rather than parallel... and you might wanna set direction fix too, since right now, If I click that tv from the sides, that will probably change to another sprite
as for auto-on, you can maybe set it using a script line ($game_switches[1] = true) in maybe scene start's start method... or if that's not the first map, then just set it to on using your first map...
I mean PAge 2 should be page 1, page 1 should be page 2...
The engine determine which page to show via this:
-> It takes the higher number page, then checks the conditions... if it's showable, it will show that page, if not, proceed to lower page...
So meaning under normal circumstances (when it's set to action, which you should), page2 will always show for you...
But it's not normal coz you used parallel process... so right now, your event actually switches back and forth from 2 to 1...
Go fin tutorials to learn more about the basics of these things... Try Andar's tutorial
So that's the first map in the game? well you can also opt to do it via events
Make an event
set page1 to parallel process
Do a set switch command to set the switch to true
Do a set swlf-switch command to set self-swtich A to true
Make a second page, make it require Self-Switch A
That way, the switch will be set to true the first time you go to that map...
Maybe you forgot to do the selfswitch thingy???
post the event pages of the new event I told you to make...
Hey i sorted it with this
Page 1 (Autorun) - Play BGS then self-switch A ON
Page 2 (Action Button and self-switch A - Play BGS then self-switch A OFF and B ON
Page 3 (Action Button and self-switch B - Play BGS then self-switch B OFF and A ON
Theres a small delay at the start of the BGS playing but thats no biggie, and this keeps the BGS off if I left it off and leave and come back =]
That should be working fine...
Although, if I leave tv on when I leave map I can hear the BGS on the different map, any way to make it so that BGS only works on the map it started on? lol
Wait nvm I solved this too =]
Thnx again for all the help.
though really, that two-paged event from before should have been working... but anyway, using just one event for it is better