Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Party following main with events

Introduction:
Well lately i seen people requesting stuff like this and people refer them to the scripting section. But what makes u think u can't do it with events D=?! I found this awhile back, but it was just so an event follows an event so i did not completely made this i just edited it to be a bit more like the caterpillar scripts  :thumb:

What u need:
2 Variables (possible to do it with no variables but needs a script but i'll make this easy for u =))
Events =D

The Tutorial:
- Ok first thing to do is make 2 Variables, name them "PlayerX x" and "PlayerX y"(change X to the number of the member)
-- Make a new event name it PlayerX (change X to the player u'r making)
-- Don't put an event graphic on the first page and change it to parallel process
-- In that event put a conditional branch to check if that player is in u'r party
-- Now inside the conditional branch set Variable "PlayerX x" to equal Players Map X
http://img387.imageshack.us/img387/5654/exampleey6.th.png[/img]
Now do the same thing for the other variable "PlayerX y" but make it equal the Players Map Y instead
-- Now for the next part u can choose to make it a squad based follow or caterpiller
now this might get a bit confusing so careful =P (making my first following player = player 2)
- For the first player following main
-- Now make Variable "Player2 x" + 1
-- Put a wait 4 frames
-- Now put a transfer Event to variable "Player2 x" and "Player2 y"
http://img508.imageshack.us/img508/8531/example2vt4.th.png[/img]

-- Now put self switch A = true

U'r first event page should look something like:
http://img132.imageshack.us/img132/1003/example3jz3.th.png[/img]

Now in page 2
-- Set the event graphic to the graphic of that player
-- Set the event to parallel process
-- Now do a control variable and change variable "Player2 x" to equal this event's Map X
    Do the same thing with variable "Player2 y" but with event's Map Y instead
http://img177.imageshack.us/img177/8779/example1te4.th.png[/img]

now make a Set Move Route to follow the player 1 and u'r done =D

Now for a different player go back to the first step on this spoiler and change "Variable "Player2 x" + 1" to Variable "Player3 x" - 1
making it so the players follow u from the sides now for a forth player u might want to leave Player4 x to equal the main players x and make player4 y - 1 or something
To be added... I got tried of writing already =P
 
This will be very good when it's finished.  I recommend you use something like Photobucket instead of ImageShack for screenshots, though.

~Guardian1239
 
i'll do that for the next images for the caterpillar one then, gona work on the caterpillar one now just need to make it in a game first =P shouldn't be to hard, i already now how to do it pretty much

Edited: Dx, i finished it but my comp crashed and broke and can't turn on no more T-T, so i can't write it without a source and i'm using my bro's comp with has no rmxp -.-, so there goes my plan on making an mmo -.-
 
wats the point of making the variables xD ?

Btw put the characters foloing you on through

Oh nvm xD

Don't triple post.
~Howdy-do, Shirly Lou
 
yeah the variables are used to transpot the character behind the main =P, and they were also used for my evented abs in my old game that i took this off of =P

i might finish this one day now that i got rmxp on my bros comp =)
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top