How do I draw on the background?

Get help using Construct 2

Post » Wed May 09, 2012 10:04 pm

Hi - I'm trying to figure out a way to draw on the background instead of laying down individual sprite objects.

Right now I'm working on a terrain generator. It makes heavy use of arrays and subdivision to create a random terrain and then provides a menu so you can alter it, but each pixel/block is a full sprite object, which chews up the performance really fast - especially on phones, which is sort of what this is intended for.

Link here:
http://textureshock.com/miscellaneous/Woldgen/

(currently only new terrain/alter terrain work)

I know there has to be a better way to do this, but I'm not having any luck finding it. Any thoughts?

Thanks!acord2012-05-09 22:05:04
B
10
S
3
G
4
Posts: 13
Reputation: 3,264

Post » Thu May 10, 2012 12:14 am

Have you had a look at the Canvas plugin?

It provides a number of methods to let you draw shapes, etc. If all you need is to be able to draw on the canvas, I imagine it'll work.

By the way, I like what you've done with the terrain generation thus far. Looks like it'll make for something very interesting.
B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Thu May 10, 2012 4:40 am

This looks excellent, thanks!
B
10
S
3
G
4
Posts: 13
Reputation: 3,264


Return to How do I....?

Who is online

Users browsing this forum: Aserak2012, ManuelPerez and 22 guests