Random Encounter RPG?

Get help using Construct 2

Post » Tue Feb 11, 2014 4:19 am

Hello ^^

I'm now wondering if Construct 2 has the capability of supporting a random encounter thing that happens in some JRPGS?
B
8
Posts: 35
Reputation: 388

Post » Tue Feb 11, 2014 6:33 am

Sure, using the timer behavior, or creating a timer yourself.

You could also use every random amount of seconds if player is state it set to overworld or something. There are lots of ways to do it. So to answer your question. Yes, C2 can do it.
B
101
S
32
G
11
Posts: 1,546
Reputation: 21,667

Post » Tue Feb 11, 2014 11:49 am

@ArcadEd

I see ^^ awesome. Thank you very much for the reply. I'll try to see what I can make with what I have at the meantime. Although I'm slightly clueless as to how to make the thing...since i actually never tried programming this XD.
B
8
Posts: 35
Reputation: 388

Post » Tue Feb 11, 2014 12:03 pm

I'm quite sure C2 can do it. At the same time C2 is a lot more generic and open package than those 'adventure building kits' so you can expect to need to effort to make it happen.
Need help? Upload .capx file with your question.
B
16
S
4
G
2
Posts: 233
Reputation: 2,560

Post » Tue Feb 11, 2014 4:14 pm

Create two global variables; one labeled "encounter" that is set to a random number from 100-150 and one labeled "movement" with an initial value of zero. Then for every movement of the character on the overworld add to the movement variable based upon the type of terrain encountered (-2 for grassland, -5 for swamp, -3 for hills, etc...). Then create a compare two variables statement that if the movement variable is greater than or equal to the encounter variable go to random battle. Then be sure reset the movement variable back to zero.droptank212014-02-11 16:22:06
B
22
S
9
G
3
Posts: 203
Reputation: 3,653

Post » Tue Feb 11, 2014 10:02 pm

@droptank21

, it is a nice implementation of what i can do. Thank you very much. It gives me another idea for random encounters ^^
B
8
Posts: 35
Reputation: 388


Return to How do I....?

Who is online

Users browsing this forum: JackTYGA, mekonbekon and 35 guests