The Daily Click ::. Forums ::. Klik Coding Help ::. 'Lil help?
 

Post Reply  Post Oekaki 
 

Posted By Message

Activ8games



Registered
  02/07/2003
Points
  463
20th July, 2003 at 16:27:34 -

Ok, this is a minor problem with the minimap in my RTS. I have begun working on the basic engine of my game in MMF. I have gotten most of the minimap things working but the events that let you click and hold on the map to scroll quickly aren't working.

Here's the code I am using:

+Repeat while left mouse key pressed
+Mouse is over the map
-Center display at X= (XMouse - X Left Frame)*50
-Center display at Y= (YMouse - Y Top Frame)*50

(the map is 1/50 of the actual play area size.)

So anyways, it works partially but it will only go left and right and it always snaps to the bottom of the field.

If you have any ideas, please help.

Also, what does spreading alterable values actually do?

 
Vote Quimby!!!

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
20th July, 2003 at 17:43:04 -

1) i think that it snaps back because the event is only true when you have the mouse key held down over the map, then when you let go it automatically snaps back to the bottom of the screen. i think. anyway, tigerworks did a cool minimap tutorial, you can check it out on www.tigerworks.co.uk .

2) spreading values assigns a different value in every instance of an object. so if you "spread value 1 in "ball"", one ball will get value 1, the next will get value 2, the third 3, and so on.

 
www.thenatflap.co.uk

Activ8games



Registered
  02/07/2003
Points
  463
20th July, 2003 at 18:16:57 -

Ok, that's wierd becuase my, minimap is based on the same tutorial you're talking about. Thanks anyway.

 
Vote Quimby!!!
   

Post Reply



 



Advertisement

Worth A Click