Is it possible to Make Events that loop like falling rocks down a cliff?

tearsofthenight

Evil Sorcerer/Mystic Key Stealer
Veteran
Joined
Feb 3, 2014
Messages
1,451
Reaction score
167
First Language
English
Primarily Uses
For example the character dodges rocks that infinitely fall from above.
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
Yes. Rocks are Parallel processes.

Your character dodge them.

But it is a little complicated I guess.

It involves move event commands, with graphic changing commands, 

collission detection using events comparing current position and hero positions,

so not many rocks can be constantly running or you will lag.

But it is possible I guess.
 

whitesphere

Veteran
Veteran
Joined
Mar 14, 2014
Messages
1,688
Reaction score
784
First Language
English
Yes.  If you create a Custom Move Route, it re-runs endlessly.  One action you can add is "Jump to Position" (I think that's what it's called).

So you just need to have the rocks Move Down several times, then Jump to the top. 

Keep in mind you don't want too many quickly moving events since they will cause the game to lag.
 

tearsofthenight

Evil Sorcerer/Mystic Key Stealer
Veteran
Joined
Feb 3, 2014
Messages
1,451
Reaction score
167
First Language
English
Primarily Uses
Yes. Rocks are Parallel processes.

Your character dodge them.

But it is a little complicated I guess.

It involves move event commands, with graphic changing commands, 

collission detection using events comparing current position and hero positions,

so not many rocks can be constantly running or you will lag.

But it is possible I guess.

Can you make a example event?
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
Check my spoiler at my signature.

Download the "game". Play it. It covers a lot of stuff on eventing.
 

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
See the waterfalls on BustedEd's tutorial demo... :)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Set Move Route (this event - repeat) - Move Down - Move Down - Move Down - Move Down - Move Down - Move Down - Move Down - Move Down - Move Down - Move Down - Move Down - Script: moveto(x,y)substituting the correct values for x and yOr to avoid that and have it automatically move back to the starting spot, TRY this (I haven't tested it and can't guarantee it'll work)

Code:
Set Move Route (this event - repeat) - Script: @msx = @x; @msy = @y                                     - Move Down                                     - Move Down                                     - Move Down                                     - Move Down                                     - Move Down                                     - Move Down                                     - Move Down                                     - Move Down                                     - Move Down                                     - Move Down                                     - Move Down                                     - Script: moveto(@msx,@msy)
 

BardicHeart

Veteran
Veteran
Joined
Mar 21, 2014
Messages
34
Reaction score
12
First Language
English
Primarily Uses
You could also set the x or y coord as a variable, generate a random number so that when the script / event is moved the next rock will appear from a random location.  You'll need to include some conditional branches to check if the variable would move the rock off the far edge and if so subtract Z variable (Z being the map width) from it so that the event in effects "wraps" back around.
 

Dymdez

Newbie-in-Chief
Veteran
Joined
Feb 4, 2014
Messages
752
Reaction score
154
First Language
English
Primarily Uses
Get a great event spawning script - this will solve all of your problems in one go!

I use #                  EventSpawn 1.2
                     by Kal (github.com/kl)
 

Galenmereth

Retired
Veteran
Joined
May 15, 2013
Messages
2,248
Reaction score
2,158
First Language
English
Primarily Uses
N/A
Look at the Ease Script in my signature for a script that will let you easily make boulders fall and bounce with less work and better looking results :)
 

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,865
Messages
1,017,059
Members
137,574
Latest member
nikisknight
Top