How do I streamline the events for loading files with AJAX

Get help using Construct 2

Post » Mon Aug 08, 2016 3:31 am

I am loading the levels through AJAX. Works well.

I wanted to streamline the events from manually have like 100 event lines like below

AJAX - On Level1 Completed --> Levelarray bla bla
AJAX - On Level2 Completed --> Levelarray bla bla
..repeat until all levels has been done..

At first I thought why not make a loop and insert loopindex for the current level.. But then nope, the AJAX is triggered and can't be in loop. Ok of course.

How would you streamline it?

Thanks. :)
Posts: 449
Reputation: 10,811

Return to How do I....?

Who is online

Users browsing this forum: DarthPapalo666 and 52 guests