0 Favourites

How do I set tiled background object's ImageWidth?

  • I don't see how I can access this expression... Unless it can only be read and not altered?

  • it's under size and position - "set width"

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

    [quote:2a9h8une]

    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.

  • 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 these are just so you can do things like

    tiledbackground - set width (tiledbackground.imagewidth * 5 )

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • 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

  • 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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
99 10,153
karshinkoff's avatar
karshinkoff
Unread hot topic
167 14,513
DMT2005's avatar
DMT2005
Unread hot topic
39 1,423
Zebbi's avatar
Zebbi