Change Background Image

Discussion in 'How Can I...?' started by Gamebox, May 23, 2020.

  1. Gamebox

    Gamebox Boxer

    Joined:
    Apr 27, 2020
    Messages:
    11
    Likes Received:
    2
    Hi, How can I change my background image when I click a button?
    I have an image as a background in a 2D world. (I am using the free version of buildbox). I would like to be able to change that image if I click a button in an option menu. Ideally I could change the path attribute in animate or something like that using Javascript using the names of the images available. I know How to get the entity but then I don't know how to access that image path. Is that possible? My brute force solution will be to have all images out there already and just scale them as I need them...

    Thanks
     
  2. Gamebox

    Gamebox Boxer

    Joined:
    Apr 27, 2020
    Messages:
    11
    Likes Received:
    2
    It seems the standard way would be to have one big picture if side by side backgrounds and just move it to the right coordinates.
     

Share This Page