The Daily Click ::. Forums ::. Klik Coding Help ::. Array help
 

Post Reply  Post Oekaki 
 

Posted By Message

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
25th July, 2004 at 22:09:37 -

I'm making an RPG in which in field mode, your allies will follow you around( like in my ALyy following engine example ). The engine for it works, but I'm currently using an INI for the engine. What's wrong then you ask? INIs laaaaaaaaagggg!

Instead of an INI object, I'm trying to use an array object.

I'm tring to write to an XY coordinate on the array, but for some reason, it won't write.

Here's my code( abridged ):

>Player is moving
-write value (X("player")) to ( ValueA("player") , 0 )
-write value (Y("player")) to ( ValueA("player") , 1 )
-add 1 to ValueA("player")


Image Edited by the Author.

 
n/a

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
26th July, 2004 at 00:46:57 -

How about trying
>Speed of Player Greater than 0
-Write
-Write
-Add

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
26th July, 2004 at 07:26:18 -

Nevermind. I found the problem. I had to set it as a numerical array. It works fine now! ;

 
n/a

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
26th July, 2004 at 07:27:00 -

Congrats, Arrays rule over inis

 
n/a
   

Post Reply



 



Advertisement

Worth A Click