BGS with event/item Issue

glenjj

Villager
Member
Joined
Dec 11, 2013
Messages
19
Reaction score
0
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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...
 
Last edited by a moderator:

glenjj

Villager
Member
Joined
Dec 11, 2013
Messages
19
Reaction score
0
First Language
English
Primarily Uses
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 :|
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
and post the pics of the event pages if it doesn't work... :)
 

glenjj

Villager
Member
Joined
Dec 11, 2013
Messages
19
Reaction score
0
First Language
English
Primarily Uses
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
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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...
 
Last edited by a moderator:

glenjj

Villager
Member
Joined
Dec 11, 2013
Messages
19
Reaction score
0
First Language
English
Primarily Uses
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?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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
 

glenjj

Villager
Member
Joined
Dec 11, 2013
Messages
19
Reaction score
0
First Language
English
Primarily Uses
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 =]
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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...
 
Last edited by a moderator:

glenjj

Villager
Member
Joined
Dec 11, 2013
Messages
19
Reaction score
0
First Language
English
Primarily Uses
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
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Maybe you forgot to do the selfswitch thingy???


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

glenjj

Villager
Member
Joined
Dec 11, 2013
Messages
19
Reaction score
0
First Language
English
Primarily Uses
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 =]
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
That should be working fine...
 

glenjj

Villager
Member
Joined
Dec 11, 2013
Messages
19
Reaction score
0
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
though really, that two-paged event from before should have been working... but anyway, using just one event for it is better
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top