Page 1 of 1

Diving in, got stuck pretty quick

Posted: 29 December 2020, 06:14
by Madmartigan007
Hello,

So I am following the Create_a_game_in_BGA_Studio:_Complete_Walkthrough

I am trying to get some moral satisfaction by just adding the game board to the screen.

To the tpl file I added
<div id="board" class="board">
</div>

to the css file I added
.board {
background-image: url('img/board.png');
width: 942px;
height: 2400px;
background-size: 942px 2400px;
float: left;
position: relative;
background-repeat: no-repeat;
background-position: center top;
}

Then I uploaded the board.png file to the img directory as well.

Not sure what I am missing. no errors, just no picture showing.

Re: Diving in, got stuck pretty quick

Posted: 29 December 2020, 10:03
by ShaPhi7
You'll need to make sure you completely refresh your browser for the studio site to clear any cache it may have had, causing it to only display files that were there before rather than your new one (Ctrl+F5 in Google Chrome, rather than the usual F5 for a standard refresh).

Edit: the below part of my original is only applicable to game_*.png or game_*.jpg image file (game box images displayed outside of game page), not for all images for your game. Thanks to fafa-fr for pointing out.

Have you clicked the magical "reload game images" button?

On studio, click CONTROL PANEL on the top menu, select your game, and on the next screen in the game configuration box, there is a button saying "reload game images".

Re: Diving in, got stuck pretty quick

Posted: 29 December 2020, 10:58
by fafa-fr
Don't know if you've done something since your post, but I see your board, no problem.
ShaPhi7 wrote: 29 December 2020, 10:03 Have you clicked the magical "reload game images" button?
This is needed only for game_*.png or game_*.jpg image file (game box images displayed outside of game page), not for all images for your game.

Re: Diving in, got stuck pretty quick

Posted: 29 December 2020, 12:28
by paramesis
Whenever you make changes to your CSS or images, you’ll want to do a hard refresh on the game interface (shift-f5 or ctrl-f5) to ignore the earlier version cached in your browser.

Re: Diving in, got stuck pretty quick

Posted: 29 December 2020, 13:23
by tchobello
Is that really a 900 × 2400 png file ?
Seems huge !

Re: Diving in, got stuck pretty quick

Posted: 29 December 2020, 14:23
by Madmartigan007
cntrl-F5 solved that - TY

I had been reloading the pictures after every step.


as for the size, no, its too big, but i had no idea until i saw it.

Re: Diving in, got stuck pretty quick

Posted: 30 December 2020, 17:54
by ShaPhi7
fafa-fr wrote: 29 December 2020, 10:58 Don't know if you've done something since your post, but I see your board, no problem.
ShaPhi7 wrote: 29 December 2020, 10:03 Have you clicked the magical "reload game images" button?
This is needed only for game_*.png or game_*.jpg image file (game box images displayed outside of game page), not for all images for your game.
Thanks for pointing out, I hadn't realised, I've updated original post.