Loading data from external files

For questions about using Classic.

Post » Sat Jun 19, 2010 7:56 pm

Hi all,

I was wondering just how moddable you could make a Construct game. Couldn't find much info on this topic - I was curious how much work it'd take to do do the following:

1. Store levels as external data files and load them at runtime - more than likely just simple tile based maps, setting all the relevant Construct properties that way. Is it even possible?

2. More importantly, would it be possible to do something like in a space shooter, store different ships as data/graphics files (let's say you could have speed, acceleration, armour etc etc) then load different ones at runtime, add new ones when required rather than 'hard-coding' (for lack of a better term) directly in Construct?

Cheers :)
B
15
S
6
G
6
Posts: 103
Reputation: 2,968

Post » Sat Jun 19, 2010 9:53 pm

Yes it possible.

I used INI files to store the level setup for my last game.

Same could be done for your ships eg:

[Ship1]
Name=Starbug
Speed=100
Shield=500
Accel=300

I think ZomgBanana's made a good example of using an INI.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Sat Jun 19, 2010 10:10 pm

Thanks for the help Minor, glad to know it's possible :P

I think I've found the tutorial, I'll put the link here for anyone who might want the same info

[url:34stcaqv]http://www.scirra.com/forum/viewtopic.php?f=8&t=4328[/url:34stcaqv]
B
15
S
6
G
6
Posts: 103
Reputation: 2,968


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests