The Daily Click ::. Forums ::. Klik Coding Help ::. How can i watch fast loops while they are working?
 

Post Reply  Post Oekaki 
 

Posted By Message

Demondevilmon



Registered
  29/12/2014 18:58:20
Points
  152
7th November, 2016 at 07/11/2016 23:49:24 -

Hey there!
I am currently working alot with fast loops. Sometimes i am unsure if my code does what i want so i try to find a way to make loops artifically slower to watch what they do. You know any solution?

Thx for ur help!

Greets DD

 
I am not a hero... never was... never will be.

nim



Registered
  17/05/2002
Points
  7234
9th November, 2016 at 09/11/2016 03:28:53 -

There's no way to make fast loops slower.

But what I sometimes do is add a String object and some extra actions to keep a log of what's going on. For example:

(On loop "FastThing")
- Set "String" Alterable Text to "Loop Index: " & String$(LoopIndex("FastThing")) & Newline$
- Create "Active" at 0,0
- Set X("Active") to LookIndex("FastThing")
- Set "String" Alterable Text to String("String") & "Created Active at X" & LoopIndex("FastThing") + Newline$

etc.

The pseudo-code above is most likely wrong (TDC removes plus symbols) but hopefully you get the idea.

 
//

Demondevilmon



Registered
  29/12/2014 18:58:20
Points
  152
10th November, 2016 at 10/11/2016 00:51:06 -

Great idea!
Thx nim!

 
I am not a hero... never was... never will be.

Airflow

imafirinmahlazr

Registered
  24/09/2003
Points
  -197

VIP MemberSonic SpeedSnow Cloud!Computer
11th November, 2016 at 11/11/2016 04:16:50 -

fast loops be hard

Edited by Airflow

 
n/a

Demondevilmon



Registered
  29/12/2014 18:58:20
Points
  152
12th November, 2016 at 12/11/2016 19:51:11 -

I just finished my levelgen0.3 for creating the mainline of my dungeon only with fast loops


 
I am not a hero... never was... never will be.
   

Post Reply



 



Advertisement

Worth A Click