The Daily Click ::. Forums ::. Klik Coding Help ::. Problem with enemies
 

Post Reply  Post Oekaki 
 

Posted By Message

Hayo

Stone Goose

Registered
  15/08/2002
Points
  6949

Game of the Week WinnerHas Donated, Thank You!VIP MemberGOTM 3RD PLACE! - APRIL 2009Weekly Picture Me This Round 27 Winner!Weekly Picture Me This Round 41 Winner!Weekly Picture Me This Round 45 Winner!
16th August, 2014 at 16/08/2014 17:11:51 -

Hi Folks,

The game I am working on uses enemies with embedded detectors. This works fine. However, when I want to make them do more than just walk around a bit (I want to make an interesting game for a change) it goes terribly wrong.

For example, when I want them to climb a ladder when they meet one on their path. This works as long as there is only one enemy in the level. Enemy collides with ladder, set state to "climbing", and set it back to "walking" when it is done climbing.
When there are more enemies in the level, and one enemy starts climbing a ladder, the rest goes nuts (floating in the air when they should fall, not moving at all etc.). Usually in Click product "enemy is overlapping ladder" is enough to tell it you just mean that one dude, but not in this case, probably because of the embedded detectors that are all in a loop (and I am a shit coder).

Any ideas?


 
www.hayovanreek.nl

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2723
17th August, 2014 at 17/08/2014 14:35:43 -

Howdy,

you might be able the fix to problem with the loop-index ...

did that work for ya?


 
Image jenswa.neocities.org

Hagar

Administrator
Old klik fart

Registered
  20/02/2002
Points
  1692

You've Been Circy'd!Teddy Bear
17th August, 2014 at 17/08/2014 14:40:21 -

Have you tried more cow bell?

 
n/a

Hayo

Stone Goose

Registered
  15/08/2002
Points
  6949

Game of the Week WinnerHas Donated, Thank You!VIP MemberGOTM 3RD PLACE! - APRIL 2009Weekly Picture Me This Round 27 Winner!Weekly Picture Me This Round 41 Winner!Weekly Picture Me This Round 45 Winner!
17th August, 2014 at 17/08/2014 14:40:53 -

Not really, I think I got stuck somewhere between magically inserting a loop index and it magically working!

 
www.hayovanreek.nl

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2723
17th August, 2014 at 17/08/2014 15:19:57 -

That's the real magic, I can only break things by using the loop-index

 
Image jenswa.neocities.org
   

Post Reply



 



Advertisement

Worth A Click