Image()?

Get help using Construct 2

Post » Sun Oct 30, 2011 1:32 pm

I've been looking into means of texture manipulation, but for that I'd need some sort of manipulable surface, so I've been looking through plugin SDK and stuff.

Both tiledbackground and sprite objects seem to use Image(), which I can't seem to find anywhere to figure its workings out. What are its properties?
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sun Oct 30, 2011 2:08 pm

The Mozilla Developer Network (MDN) is the best place to look this stuff up.

HTMLImageElement (which inherits from Element)

Image doesn't actually do much - you'll probably want to manipulate it via the canvas methods:
HTMLCanvasElement and CanvasRenderingContext2D

Construct 2 uses the canvas method to generate new images for auto-mirror/auto-flip. Beware of browser security limitations though: no image manipulation methods work on the file:// protocol for security reasons, so anything you do will only work in HTTP mode.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580


Return to How do I....?

Who is online

Users browsing this forum: gregorysforster, Matthew de and 1 guest