The Daily Click ::. Forums ::. Klik Coding Help ::. Individual Mirror Selector Engine(TGF) Problem
 

Post Reply  Post Oekaki 
 

Posted By Message

Deleted User
22nd December, 2004 at 06:06:17 -

My problem is a bit complicated(TGF); I'm making a new engine for my game Beam(which I uploaded a few days ago but erased it now due to the corrupted file and lack of webhost). I made an engine which took about 70 lines of coding(still not finished)but I have a problem, The Coding stuff start like this:

I made 3 Groups:

-The Mirror selector group(not active at the start of level)
-The Mirror Initiater(Active)
and
-Always Active Group(random stuff go here)

I have made about 7 active object with the copy/paste thingy, So there are 7 "Mirrors" but they only see as one active at the libraries section at the left side. They don't have any animation but look at 32 different directions. When you click on one of them, a box appears as an indicator of which one is selected. And 4 different arrows(up,down,left,right)are with this box around it. I use a counter to change the direction of the counters. Left Click to select them and double-right click to deselect them. The max value of the counter is 34(in order to loop) and min value is 0. Initial value is 1.

Here is the coding:
<The Mirror Selector Group>

+Start of Level set set "Direction Counter" to 1
+Upon pressing right pointer(the actives around the active box)add to counter=1
+Upon pressing left pointer subtract from counter=1
+Upon pressing up pointer set counter to=1
+Upon pressing down pointer set counter to=17
+Counter=1 set direction of "Mirror" to "up(direction)"
+counter=2 set direction to "Mirror" to "rightup(direciton)"
etc. till it goes to Counter=32 set direction to etc.

Upon pressing these pointers the direction of the mirror changes as you see.
But my problem will start after that.

<The Mirror Initiater>

+The mouse is over "Mirror" upon clicking once, loop this event once set initial flag A 0 on
+Negate Upon pressing "Mirror" set initial flag A 0 off.
+Initial flag A 0 on= activate group "Mirror Selector Group" deactivate "The Mirror Initiater" group etc.

going back to "Mirror Selector Group":

+Upon double right clicking deactivate "Mirror Selector Group" and activate group, etc.

The problem is, I use and active object, an invisible small green box to do the activation of The Mirror Selector Group", but when changing the direction of the "Mirror" it changes all of the actie mirrors you see, probably because of the copy/paste thingy. How can I make it do it individually?

(ehhh, I'm tired)

 

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
22nd December, 2004 at 06:29:28 -

how often do i have to post this link

http://www.create-games.com/article.asp?id=1082

 
www.thenatflap.co.uk

Deleted User
22nd December, 2004 at 09:09:13 -

didn't know there was an article about this

 

Deleted User
22nd December, 2004 at 09:10:40 -

it writes MMF, is it complatible with TGF also?

 

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
22nd December, 2004 at 09:41:07 -

yeah it should be, using the fastloop extension.

 
www.thenatflap.co.uk

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
22nd December, 2004 at 13:19:57 -

Also worth checking out http://www.clickteam.info/kb/start/index.php?showtopic=43

 
- Tigerworks

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
22nd December, 2004 at 17:33:24 -

trust tigs to pimp his version

 
www.thenatflap.co.uk

Deleted User
23rd December, 2004 at 06:06:46 -

that's a really nice article, thanks for the link

 
   

Post Reply



 



Advertisement

Worth A Click