The Daily Click ::. Forums ::. Klik Coding Help ::. Looping within a level
 

Post Reply  Post Oekaki 
 

Posted By Message

cosbish



Registered
  07/12/2006
Points
  26
30th June, 2007 at 15:02:20 -

Is there a way to loop a certain part of a level until a certain goal is achieved, then unloop it and continue the level?

 
n/a

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
30th June, 2007 at 15:24:37 -

yes there is.

use flags/alterable values to determine if a task has been done.

use a detector for the start/end of the loop, unless you have more than one section, in which case use several of them, or copy/paste the object and spread a value between them

If the flag/value is on/set to a value, continue the level normally

If it's off, "jump" to the start of the looped section. (set position of character to (x,y) etc)

 
My signature is never too big!!!

cosbish



Registered
  07/12/2006
Points
  26
1st July, 2007 at 00:18:20 -

Joe, your idea is helpful but I am creating a type of boss fight in which the ground collapses behind the player and the boss runs ahead. Syncing up the boss and the collapsing ground to the loop (in addition to the player) seems like it would be really difficult, if not impossible.

The crumbling ground consists of many tiles, each of which crumbles after the one before it crumbles. If there is a better way to do this that would be more compatible with the loop idea, I suppose I could try that.

Phizzy, I know what you're talking about but I think this is a different concept.

 
n/a

»xerus



Registered
  28/06/2002
Points
  675

You've Been Circy'd!Game of the Week Winner
1st July, 2007 at 01:05:03 -

Have the player and the boss remain in the same position while continously creating new tiles that scroll by them?

 
n/a
   

Post Reply



 



Advertisement

Worth A Click