How do I set tiled background object's ImageWidth?

Get help using Construct 2

Post » Wed Aug 12, 2015 11:53 am

I don't see how I can access this expression... Unless it can only be read and not altered?
B
40
S
16
G
6
Posts: 543
Reputation: 7,649

Post » Wed Aug 12, 2015 1:04 pm

it's under size and position - "set width"
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Wed Aug 12, 2015 1:31 pm

Yeh, there's another one I'd like to get at and change tho. From the manual:

Tiled Background expressions
ImageWidth
ImageHeight
The original dimensions of the tiled background's current image in pixels. Since tiled backgrounds can be extended over large areas causing the normal Width and Height expressions to return different values, these can be used to get the original size of the source image regardless of the object size.
B
40
S
16
G
6
Posts: 543
Reputation: 7,649

Post » Wed Aug 12, 2015 1:39 pm

for the imagewidth imageheight i guess you may want to enlarge it using the sprite editor?

you can do a Scale altering from the events... if you want.. that is going to scale the whole thing... but i guess works only on sprites... not sure on tilebackgrounds...
B
78
S
23
G
69
Posts: 1,354
Reputation: 44,027

Post » Wed Aug 12, 2015 1:40 pm

I think these are just so you can do things like

tiledbackground - set width (tiledbackground.imagewidth * 5 )
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Wed Aug 12, 2015 2:32 pm

gamecorpstudio wrote:for the imagewidth imageheight i guess you may want to enlarge it using the sprite editor?

you can do a Scale altering from the events... if you want.. that is going to scale the whole thing... but i guess works only on sprites... not sure on tilebackgrounds...

I think that'll change just the drawing area and not the tile resolution itself? I guess I'll just have to make a big-ass sprite to do the job.

Thanks for the suggestions :)
B
40
S
16
G
6
Posts: 543
Reputation: 7,649

Post » Thu Aug 13, 2015 12:44 pm

ErekT wrote:I think that'll change just the drawing area and not the tile resolution itself? I guess I'll just have to make a big-ass sprite to do the job.

Thanks for the suggestions :)


i dont know really i didn't tested but as seen on the sprites how they act.. the whole picture enlarges... i was thinking will do the same on tile-background see if anything happens.. if not then really have no clue.. i wold gladly do a test for u but im not at home im in vacation in some village barely have internet connection.. you can search in the manual maybe there is a reference on it
B
78
S
23
G
69
Posts: 1,354
Reputation: 44,027


Return to How do I....?

Who is online

Users browsing this forum: VValt and 22 guests