RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Water Current Event System Tut *Updated!*

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 86
I hate everyone except the ones I don't hate...
Yo! This is my third event system today! Now it's an event system with water, dragging you with the current, towards, possibly the player's in-game death, gameover, or a simple return to a specific checkpoint!

It's hyper-simple, so listen closely!

First, make it so that any water that you want to be able to pass, passable!

Spoiler for Old Version! BAD!:
Make an event with two pages and check both pages as "Parralel Process"

On the first page, make
@> Self Switch A ON

On the second page, make the condition "Self Switch A = ON".

Then, in the event command box, choose:

@>Wait: 20 Frames
@> Set Move Route: Player
:                  : @> Move Down
@> Self Switch A OFF

Yikes! Strike that! Now I have improved it from Modern's suggestions! ;)

Spoiler for Woah, Mama! Sweet! I'm gonna use this for sure!!:
Make an event and set it to Parallel Process.

Make 4 Conditional Branches, the three first of them with Else Handlers (though I doubt it makes a difference, but I like using Else Handlers :P )

Each conditional branch has to be for each direction the player can face!
Now in each of these make a Wait Command on 20 frames. Lessen to increase current strength, increase to decrease current strength.
Now make a Set Move Route for Player in each of them, and for

DOWN
Code: [Select]
Move Down.

LEFT
Code: [Select]
Move Down
Turn Left

RIGHT
Code: [Select]
Move Down
Turn Right

UP
Code: [Select]
Move Down
Turn Up

That was for the simple version. Now, to change it to the "advanced version", do this:

Make the event trigger to Switch: Water Current ON!

To activate it, just make Water Current ON and to deactivate it, make Water Current OFF!
« Last Edit: April 29, 2008, 06:53:52 PM by Demonic Blade »
I wonder how many of my-reps are there for a reason, and not just because some jackass wanted to show off in front of some other jackasses...?
Probably a lot of them - and those people sure as hell don't deserve my pity, let alone my disgust.
That's right, let's see some more -Rep'ing! BOOYEAH!!

*
Resident Cloud
Rep:
Level 91
surely you need some control here for if your in the water or not ?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
I also do not understand the first page of the event. Parallel process events repeat themselves once they finish executing, so all that splitting it into two pages does is make it take 21 frames instead of 20 frames between drags.

That aside, it is a nice idea.

Also, @ahref, I would assume this would be used for a mini-game on a map where you cannot go on land. But if not, then yeah, you'll need some way to check if the person is actually in the water. And if you're looking for a way to translate the system into VX with vehicles, then all you'd need to do is put a Conditional Branch on in vehicle Boat or Ship


*
Resident Cloud
Rep:
Level 91
* ahref wishes to create the rayman 3 swim upwater riding globox whos high on plum juice :D

***
Rep:
Level 86
I hate everyone except the ones I don't hate...
Ahref, I'll change it a bit to include a switch.

@Modern: Well why not just change it to 19 Frames then? Besides, if I made it one event page, the guy wouldn't move until those (as you say) 21 frames are up. But I will include a switch with the demo I'm gonna post in a sec.
And I'll edit the tutorial so that it also says you need to set the water to transparent!
I wonder how many of my-reps are there for a reason, and not just because some jackass wanted to show off in front of some other jackasses...?
Probably a lot of them - and those people sure as hell don't deserve my pity, let alone my disgust.
That's right, let's see some more -Rep'ing! BOOYEAH!!

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
? Of course he would. A Wait command in an event only affects the event's processing - the player can still move. You know this already, because all I am proposing is using your second page, which already has this implemented and it does not restrict player movement. And as to me saying that it adds a frame, the number of frames does not actually have relevance (and that is  the reason why the first page is irrelevant) - I was just pointing out that the first page does not effect the actual event in any way aside from that. So, if you removed the first page entirely you could reproduce it's entire effect on your event by adding an extra frame to your Wait command. (And it does add an extra frame because of the way that events work. Only one page of an event is evaluated in a frame update)

I would also suggest fixing the direction of the player before the move down and then unfixing it after the move down. Just because that way the water current won't turn the player, just move him in the direction of the current.

In any case, it is a nice idea for an event system. Keep up the good work - you've published quite a few event systems recently.

***
Rep:
Level 86
I hate everyone except the ones I don't hate...
About the direction, I guess you're right, but it would use some extra time on it, and I try to keep 'em as short as possible (though I'm not very good at it). I thought about the direction as well, but I kept it like that. I'll take a look at the event and try to simplify it.

EDIT: First post updated me hearties!  ;D
« Last Edit: April 29, 2008, 06:54:51 PM by Demonic Blade »
I wonder how many of my-reps are there for a reason, and not just because some jackass wanted to show off in front of some other jackasses...?
Probably a lot of them - and those people sure as hell don't deserve my pity, let alone my disgust.
That's right, let's see some more -Rep'ing! BOOYEAH!!