The Daily Click ::. Forums ::. Klik Coding Help ::. Question about grid?
 

Post Reply  Post Oekaki 
 

Posted By Message

EleXor



Registered
  21/01/2003
Points
  269
14th September, 2003 at 06:33:28 -

Yeh i finally got one grid system work. Here is the events:
Upon pressing right arrow = 1 * 32 + X( "Box" )
Upon pressing left arrow = -1 * 32 + X( "Box" )
Upon pressing down arrow = 1 * 32 + Y( "Box" )
Upon pressing up arrow = -1 * 32 + Y( "Box" )

So now it moves gridly, but, if i hold example the left button, it just one time move gridly to left and then it goes to left like normally... How to fix this?

 
n/a

EleXor



Registered
  21/01/2003
Points
  269
14th September, 2003 at 06:50:43 -

Umm there is now one harder thing to figure out.. There are turns and player one starts. You can move only 1 block (32 * 32 / block) per turn. And i'm finished with the fighting system. I would like the enemy to move at player gridly, of course, it can move only one block too. I Might have idea, but im not sure does it work

 
n/a

Kramy



Registered
  08/06/2002
Points
  1888
14th September, 2003 at 11:05:48 -

After an arrow key is pressed, set "turn counter" to (2?)

Counter = 2
Move enemy events
set counter 3

Counter = 3
Move enemy events
set counter 1

----------------------
Counter >= 2
Monster is "over" player(not sure how fighting works)

Start fight

That's about all I can explain here...maybe someone has a better idea.

Image Edited by the Author.

 
Kramy
   

Post Reply



 



Advertisement

Worth A Click