The Daily Click ::. Forums ::. Klik Coding Help ::. TGF multiple custom movements
 

Post Reply  Post Oekaki 
 

Posted By Message

Robageejammin



Registered
  21/03/2005
Points
  17
29th March, 2005 at 10:56:27 -

I have a bunch of little guys running on a rocky terrain. I am trying to give them the ol' bg is up - move up, bg is down - move down technique with invisible sensor blocks accordingly. The problem is that I can only do it for one of them. Considering I plan on having more than 30 of them on screen at once, I definitely dont want to make them all different active objects, each with their own blocks (I quiver at the thought). I just want to be able to take the same guy and copy him as much as I want. Im guessing there might be a way to do this with values but im just not sure of how to go about it.

Any suggestions?

 
This curse is more cursedly curse-worthy than any curse that's ever cursed you!

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
29th March, 2005 at 11:37:25 -

hmmm... i've done this before.
i just can't remember how i solved it.
you'll just have to somehow give each sensor block a value, and then just connect them to the guy with the same value.

maybe something like:

flag 0 of (guy) is off
-set value A of (guy) to (counter)
-set flag 0 of (guy) on
-add 1 to counter

and the same for the blocks and then just connect them to the same value enemies.
I don't know if this works, i'm too lazy to try it, but it's worth trying.

 
n/a

Dave Matthew (Jester Gaming)



Registered
  09/07/2004
Points
  148
29th March, 2005 at 17:45:00 -

I guess you want to be able to move them all at once?

 
n/a

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
29th March, 2005 at 18:24:39 -

http://www.klik-me.com/KMv2/article.asp?id=17 </shameless plug>

 
http://www.klik-me.com

Robageejammin



Registered
  21/03/2005
Points
  17
29th March, 2005 at 22:21:33 -



well yea, I definitely want them all to move at the same time. I guess thats another problem, but it is necessary for the game. And also keep in mind "I definitely dont want to make them all different active objects, each with their own blocks". Remember, all the guys look the same, in other words, its "active object 1" copied like 20 times. I can probably think of some harder and messier way to do it but i really just wanted to be able to create these guys on the fly at any time in the game.

Agh, well thanks for the help so far. I dont think it exactly pertains to what I want though. If anyone can think of something else then please fire away.


 
This curse is more cursedly curse-worthy than any curse that's ever cursed you!
   

Post Reply



 



Advertisement

Worth A Click