BGS with event/item Issue

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...
Why not play a BGS using another event? then use switches to manage the activation and such
I tried that with a below character blank event tile, but if I set it to paralell process to make it start on its own when I first wake up on the map, how do I turn it off again? cant seem to figure that, I made a new event page on the BGS event to start with a switch but it wont override the paralell process BGS playing lol :|
this

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...
If you already made events, better show us pictures of them so we can see what's wrong
Yeah just read your edit sorry, Ill try what you said and see if i sort it, if not Ill be back lol

Cheers for the tips
and post the pics of the event pages if it doesn't work... 🙂
Bleh Ive confused myself now lol, cant wrap my head around it, heres the pics of my 2 page tv animation, and the bgs event

If I use a switch to turn on the BGS, how do I have the switch turn on by itself at the start? and then make the tv the action item to turn it on and off again at will, and also keep it that way if I leave and come back to the map.

Cheers.

BGS.JPG

tv2.JPG

tv1.JPG
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...
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...
Page 2 of the tv event is the graphic I want to show, of the animatied tv, what do I need to switch?

How/where do I use a script like that?
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
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
Oh righto I get what you meant with the tv now, yeah it didnt show when I clicked it on and off until I swapped them.

I just need to sort the switch script now, Ill find some tuts on using scripts.

Cheers for all the info =]
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...
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...
Yeah was gonna have the guy wake up in bed with the tv on, and thats the start of the game.

And that kinda worked, the BGS played auto, then clicking the tv turned it off, but when I left the room and came back it autostarted the BGS again even with the tv off, hmmmmm
Maybe you forgot to do the selfswitch thingy???


post the event pages of the new event I told you to make...
Maybe you forgot to do the selfswitch thingy???

post the event pages of the new event I told you to make...
I made it

ev1.JPG

ev2.JPG
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

Original thread: https://forums.rpgmakerweb.com/threads/bgs-with-event-item-issue.20847/