Level Creation with Tilesets

Get help using Construct 2

Post » Mon Oct 29, 2012 8:18 pm

Been playing around more with construct, and currently after looking at things unsure how I would go about making a level more smoothly than manually copying instances of a solid object.

Read some things and heard about a CSV plugin being able to use an array to generate the level for a tileset, but also heard arguments against using all tiles due to performance issue.

Would it be best to use a giant(depending on level size) tiled background image for all the "background" tiles and then have only the solid ones in an array to be generated?


The software I use to generate my tiles is a great one called Pyxel Edit ( http://pyxeledit.com ) which has options to export the tileset as a png file along with a text or XML document of their placements

Text format (no rotation/flip information as of yet, hopefully next update)
http://dl.dropbox.com/u/73774002/plains1%20test.txt

XML format (includes rotation/flip information)
http://dl.dropbox.com/u/73774002/plains1%20test.xml

(-1 means no tile placed there)


Sorry if the post is a bit long winded, so I'll just reiterate things succinctly here:

1) Performance wise: Better to use all tiles or tile-solids with a large background image?
Edit:Apparently tiled backgrounds blur when resized while sprites do not, and sprites do no blur if webGL is enabled. So I guess all tile sprites is the way to go

2) Instructions: How would I use a CSV file to make a level map ; or the XML file?Thndr2012-10-29 21:25:15
B
15
S
4
G
4
Posts: 294
Reputation: 3,225

Post » Tue Oct 30, 2012 9:23 pm

Okay tried out some things and I figure I'm doing something wrong as it's not turning out how it should.

using CSV2ARRAY plugin by Rex to make a tile array and then converting the value into the animation frame.

The image is supposed to look like this:

http://i.imgur.com/ofn3g.png

But it just cycles through the tiles until it gets the last one.

EDIT: Forgot to turn animation speed off. Also had to adjust array tileplacement calculations.Thndr2012-10-30 22:26:34
B
15
S
4
G
4
Posts: 294
Reputation: 3,225

Post » Tue Oct 30, 2012 10:31 pm

Okay getting something weird now. Fixed all my previous issues so far, but CurY and CurX seem to be reversed using a CSV array. The X value has to be CurY and the Y value has to be CurX or else the level is on it's side.Thndr2012-10-30 22:36:01
B
15
S
4
G
4
Posts: 294
Reputation: 3,225


Return to How do I....?

Who is online

Users browsing this forum: Rezzon71, tarek2, Yahoo [Bot] and 19 guests