The Daily Click ::. Forums ::. Klik Coding Help ::. After Battle
 

Post Reply  Post Oekaki 
 

Posted By Message

fudge0101



Registered
  30/03/2004
Points
  6
30th March, 2004 at 03:01:33 -

o ok ok i gots me self a problem when i finish a rpg type battle how to i make it so i teleport to the excact same spot as i got in the battle like final fantasy and pokemon?

 
n/a

Cybermaze



Registered
  03/04/2003
Points
  853
30th March, 2004 at 03:23:37 -

Its really not that hard.

I take it you have your rpg world/level in one frame and your battle in another. Simply save the position of the character (could be in an ini file) before changing to the battle frame. Then when the battle is over return to the world/level and set the position of the character to that one you saved (in this example from the ini).

If you have MMF, you can save the position in a global object/array instead of using an ini file.

 
If you knew, I would have to kill you...

fudge0101



Registered
  30/03/2004
Points
  6
30th March, 2004 at 03:30:56 -

hmmmm can u do it for me do u have msn i have no clue how to do that lol my msn is rolley2010@yahoo.com.au

 
n/a

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
30th March, 2004 at 06:40:42 -

Here's some simple example pseudocode


::::::n the nonbattle level:::::

>When player encounters a random battle, before going to the battle level,
-set item of tempini to "tempX"
-set value to X(player)
-set item of tempini to "tempY"
-set value to Y(player)


::::::n the battle level:::::::

>If you win
-set global_value(X) to 1

:::::::back to the nonbattle level::::::::

>start of level
+>global_value(X)=1
-set global_value(X) to 0
-set item of tempini to "tempX"
-set X(player) to (value(ini))
-set item of tempini to "tempY"
-set Y(player) to (value(ini))

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
30th March, 2004 at 09:10:12 -

if you have problems with that, then you will have problems with almost every other aspect of the game.
rpgs are complex.

 
.

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
30th March, 2004 at 10:40:02 -

you won't learn if someone else does it for you search the articles section for some ini articles.

 
www.thenatflap.co.uk

Mr Icekirby



Registered
  18/12/2003
Points
  846
30th March, 2004 at 18:04:32 -

ini sucks! its so easy to edit! just go to C:\Windows\"newest ini file".ini

 
Mr Icekirby says so!
OBEY ME!

cake



Registered
  13/12/2002
Points
  1173
31st March, 2004 at 19:17:23 -

I would recommend global values for this over INI. I only use INIs to dump all of my global values when the player chooses to "save".
1000 global values object might be particularly handy if you are doing an RPG.

Oh and I agree, do it yourself.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click