Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_loopiterator

Plugin, ACE table, Discussion thread
Dependence: None

Introduction
An iterator to return loop-index.

Usage
Sample capx
  1. Call "Action:Add loop" to declare loops with loop-index and start, end, step values for each level of loop. Or call "Action:Add list" to declare loops with loop-index and a value list in JSON format. Note that user should declare loops in a tick, otherwise the loops definition will be reset.
  2. Then call "Action:Next" to get the next loop-indexes. After that, call "Expression:loopindex" to get loop-index.
"Condition:Has next" could be used to test if the looping is finished or not.
Debugger
User could see current value of loop-index in debugger.
Co-work with rex_eventbalancer
Sample capx
This plugin could co-work with rex_eventbalancer since it could maintain loop executing in ticks.


Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About