question on events

ianbach

Zombie Master
Member
Joined
May 3, 2014
Messages
67
Reaction score
6
First Language
english
Primarily Uses
I am trying to make a subway event but cant seem find a way to make it work with events

I want it to drive up to loading zone open doors wait few seconds close doors then drive away and then it would jump back to start position and repeat actions.

i also want to make it so if someone is standing at the loading zone when the subway is at loading zone then it would start a movie of riding on a subway then transfer the player to the next subway station.

I made a sprite here - I had to reedit it and basically the 1st and 3rd columns i copied to column 2...... so all three are same as column 1 n 3 on my new sprite sheet.

 

Doobles

That guy...
Veteran
Joined
Mar 10, 2013
Messages
237
Reaction score
28
First Language
English
Primarily Uses
RMVXA
I would have sprited this a little differently, because without direction fix this will not animate properly.

When the train moves down the doors remain closed.

When the train moves left, right, and up the doors will open and close.

That is probably what is causing you so much grief.

With this stuff in mind, set the event to the graphic of the closed doors train with direction fix on and do a simple auto move route moving in either direction into the station.

Next, to open and close the doors, you will need to change the graphic of the event in the event itself.

The waiting time can be simply used with the wait command.

Playing a movie would be as simple as choosing the only movie command there is.

You could probably figure out the specifics yourself with all of that stuff.

EDIT: Another alternative would be to change the middle column so that all the frames you will use are there, and you could use the move route to face different directions to simulate animation.

I also saw that you said you edited the sprite, I'm not sure what exactly it looks like if it isn't what you've shown.
 
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
I'd put direction fix using the event page, then disable it on the move route that will open the doors... That way, the move route can change the direction but after that it returns to having direction fix again (no need to even set it ON again, AFAIK)

If that won't work, then just turn ON Direction fix before you move the train, turn it off when you open the doors, and turn it ON again if you're gonna move the train again
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've moved this thread to VX Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.
 

ianbach

Zombie Master
Member
Joined
May 3, 2014
Messages
67
Reaction score
6
First Language
english
Primarily Uses
 

I'd put direction fix using the event page, then disable it on the move route that will open the doors... That way, the move route can change the direction but after that it returns to having direction fix again (no need to even set it ON again, AFAIK)

If that won't work, then just turn ON Direction fix before you move the train, turn it off when you open the doors, and turn it ON again if you're gonna move the train again

 
Yup I know those basics

but atm I have it page 1 moves train to station perfectly

the doors open on page 2

the doors  close on page 3

and page 4 train moves and then teleports back to start position - all that is working fine until it tries to reset event it seems like it only resets back to page 4 move to zoneline and reset position page

so atm after it resets position it moves half way across screen then doesn't open doors and goes back to reset position again

and i tried using variables and conditional switches but i cant seem to get those to work.

I am new to it

maybe i dont even need a switch 

maybe i could put a do you want to take ride on subway to next station  text option thingy ooops nah i would still need switch to tell the subway I am at the loading area.

so i need add a way so if charchter is at loading area when train opens doors then presto abra cadabra yipee and off the charachter goes to next zone  - the transfer player stuff all that easy stuff is np its these darn switchs got me confused maybe I need sleep been up 3 days 

here is demo I made 20 megs  I know I am close and i just doing something stupid
DEMO https://drive.google.com/file/d/0B_3Ge_b1unWsNXVCT2ZhaW44QW8/view?usp=sharing
ok I am still trying to understand I been playing  with it many ways. Ithink I need a ? conditional switch? so when a player is in loading zone game will know. then I was thinking second page of subway I do conditional branch on and tell it moves i want if it meets the requirements? im clueless sorry im fine with art the code stuff im learning... so thanks tons for all help given.

1   so I want moves from left side of screen stops at the loading zone

2   doors open

3   checks if player is at loading zone (if yes than player move forward one step / fade black /** ill add in movie later thats easy*** / then transfer player to next subway terminal.err zone step down one step away from subway

4 if player is not at loading zone doors close then subway moves right till end of screen and then it transfers back to start

event reset and replay

oh also if I need to move the sprite animations around to be set up differently let me know?
here is event page for subway as far as i got it so far.....
 

and i made conditional switch on if near loading and o ff when not in loading zone on a different event








 
Last edited by a moderator:

Doobles

That guy...
Veteran
Joined
Mar 10, 2013
Messages
237
Reaction score
28
First Language
English
Primarily Uses
RMVXA
That seems like an odd conditional to have.  Something a little more realistic would be to simply set a timer for the train.

Something you could do for your conditional is to activate a global switch to on when a player gets into the position needed, aka, touches an event that turns the switch on and does nothing else.

When the switch is on, the player will go on to the train with a simple move route and then you'll include whatever else you want to do to continue to the next station, play the movie, whatever.  After you've arrived at your destination, the switch should be turned off so you can repeat the process.

If the switch is off, nothing will happen and the train will leave.

EDIT:

Another way to look at it, which would work better with your event, is to set 2 conditionals, but using the same switch as mentioned above.

The first conditional would be simply getting on the train.

The second would be after the train leaves, which would happen regardless of the switch.

After the train leaves, you could check that same switch again and then event whatever you want to include after such as the movie, player transition, etc.
 
Last edited by a moderator:

ianbach

Zombie Master
Member
Joined
May 3, 2014
Messages
67
Reaction score
6
First Language
english
Primarily Uses
That seems like an odd conditional to have.  Something a little more realistic would be to simply set a timer for the train.

Something you could do for your conditional is to activate a global switch to on when a player gets into the position needed, aka, touches an event that turns the switch on and does nothing else.

When the switch is on, the player will go on to the train with a simple move route and then you'll include whatever else you want to do to continue to the next station, play the movie, whatever.  After you've arrived at your destination, the switch should be turned off so you can repeat the process.

If the switch is off, nothing will happen and the train will leave.

EDIT:

Another way to look at it, which would work better with your event, is to set 2 conditionals, but using the same switch as mentioned above.

The first conditional would be simply getting on the train.

The second would be after the train leaves, which would happen regardless of the switch.

After the train leaves, you could check that same switch again and then event whatever you want to include after such as the movie, player transition, etc.
so far all i got that works on a repeat is train starts goes across stops open doors waits closes doors then goes to end of track out of view  and the sprite works fine as is doors open and stay closed np

but when i do all event pages with switch off it only repeats that last page and does not restart at start of sequence

EDIT

i been working on this for like  days now lol last day i just have the demo for switchees I remade it so its this subway scene(that way no worries of scirpts n such or anythign else that could cause me troubles)

here is the latest link

 https://drive.google.com/file/d/0B_3Ge_b1unWscWw4R0djZFFGeGc/view?usp=sharing

I change sprite so now i can do all sequences one page so easy to get it to repeat the sequesce i still trying figure out how to use conditional branches or switches so it does the load passenger and transfer or end subway car move sequence 

sprite is now set as

door 2/3 open    = down

door 1/3 open    = left

door close          = right

door 3/3 open    = up 
 
Last edited by a moderator:

Doobles

That guy...
Veteran
Joined
Mar 10, 2013
Messages
237
Reaction score
28
First Language
English
Primarily Uses
RMVXA
Huh, says I don't have permission to access your project.

My best guess would be that you are not resetting the self switches on your event.
 

ianbach

Zombie Master
Member
Joined
May 3, 2014
Messages
67
Reaction score
6
First Language
english
Primarily Uses
Huh, says I don't have permission to access your project.

My best guess would be that you are not resetting the self switches on your event.
ok so i checked and it is permissions anyone

maybe u mistook "no preview available" message? i tried link in incognito works fine

edit

OOPS nm i finally got it working sorta

now i need find a true false method instead of a numeric on so i can easy on off it

event works until it gets to transfer player and it drops player back in same zone and does not transfer to other zone but the horz and vert location of transfer is correct just drops in wrong zone not the one assigned



added pic of 

 
Last edited by a moderator:

ianbach

Zombie Master
Member
Joined
May 3, 2014
Messages
67
Reaction score
6
First Language
english
Primarily Uses
Last edited by a moderator:

Doobles

That guy...
Veteran
Joined
Mar 10, 2013
Messages
237
Reaction score
28
First Language
English
Primarily Uses
RMVXA
The issue turned out to be that I forgot that map local event processing stops when the player leaves the map the event is on.  Basic stuff I forgot about, but anyways, I have it fixed.

Change page 4 of the event to look like the picture below.  Then, on every station map, have an autorun event that fades in the screen, and turns on a global switch you create called "trainfade".  In that event you also need to have a blank page 2 with "trainfade is ON" as a condition.  The two events are shown below.

This did turn out to be far more convoluted than I thought it would, however I hope it makes sense.  That event you use to wait for the train may need tweaking.  Since you must wait for 600 seconds, it may take maps time to fade in, but I doubt it matters much since you planned on playing a movie.
 
Last edited by a moderator:

ianbach

Zombie Master
Member
Joined
May 3, 2014
Messages
67
Reaction score
6
First Language
english
Primarily Uses
The issue turned out to be that I forgot that map local event processing stops when the player leaves the map the event is on.  Basic stuff I forgot about, but anyways, I have it fixed.

Change page 4 of the event to look like the picture below.  Then, on every station map, have an autorun event that fades in the screen, and turns on a global switch you create called "trainfade".  In that event you also need to have a blank page 2 with "trainfade is ON" as a condition.  The two events are shown below.

This did turn out to be far more convoluted than I thought it would, however I hope it makes sense.  That event you use to wait for the train may need tweaking.  Since you must wait for 600 seconds, it may take maps time to fade in, but I doubt it matters much since you planned on playing a movie.

thanks tons for all your help

yup lol i know it is way more difficult than i thought also.

but thanks ta ya,  ..... me Train be a werken

I have 5 subway Stations now

Each station has 2 floors

im using my train with double doors now

so each level the train actually has 2 destinations available (i was way stoked when I got the double door werken gut

so 4 destinations per station !!!!!

I set up TVs with screen that flicker and change (cool lil Sprite but I need make better pics still)

and have water coolers that revive and Small little store in the top floors of the subways 

I will make my demo so it has all the cool stuff i made for my subway terminals
 

Doobles

That guy...
Veteran
Joined
Mar 10, 2013
Messages
237
Reaction score
28
First Language
English
Primarily Uses
RMVXA
Awesome, I'm glad I could help!  If you have any more questions feel free to message me.

Good luck with your project. :D
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
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'??

Forum statistics

Threads
105,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top