Right, well I'm making a game and I simply want to place three buttons on the screen. Each button simply has two frames; pushed down, and not pushed down. All three were made based on just one template and they were made in Paint. Yet, when I load and display them in the code bellow, two come out at double the size while one remains correct. Has anyone any idea why this is happening? Here is the code I think could possibly be relivent to this problem:
function InitialiseGame()
REM *** Set Display ***
set display mode 1280,1024,32
REM *** Load Graphics ***
set image colorkey 255,255,255
load image "C:Documents and SettingsLaurieMy DocumentsMy PicturesGames PicsCycling Racebackground.bmp",6
Create animated sprite 1,"C:Documents and SettingsLaurieMy DocumentsMy PicturesGames PicsCycling RaceMexican.bmp",1,1,1
Create animated sprite 2,"C:Documents and SettingsLaurieMy DocumentsMy PicturesGames PicsCycling RaceOpponent.bmp",1,1,2
Create animated sprite 3,"C:Documents and SettingsLaurieMy DocumentsMy PicturesGames PicsCycling Raceintro button.bmp",2,1,3
Create animated sprite 4,"C:Documents and SettingsLaurieMy DocumentsMy PicturesGames PicsCycling Raceplay button.bmp",2,1,4
Create animated sprite 5,"C:Documents and SettingsLaurieMy DocumentsMy PicturesGames PicsCycling Racecredits button.bmp",2,1,5
offset sprite 1,sprite width(1) / 2,sprite height(1) / 2
offset sprite 2,sprite width(2) / 2,sprite height(2) / 2
offset sprite 3,sprite width(3) / 2,sprite height(3) / 2
offset sprite 4,sprite width(4) / 2,sprite height(4) / 2
offset sprite 5,sprite width(5) / 2,sprite height(5) / 2
endfunction
function StartScreen()
REM *** Prepare Background ***
color backdrop rgb(207,245,45)
backdrop on
REM *** Draw Buttons ***
sprite 3,screen width() / 2,screen height() / 2 - 100,3
sprite 4,screen width() / 2,screen height() / 2,4
sprite 5,screen width() / 2,screen height() / 2 + 100,5
set text font "Andy"
set text size 150
ink rgb(225,0,0),0
center text screen width() / 2, screen height() / 5,"Mexican Bicycle Race"
set text size 40
center text screen width() / 2, screen height() / 5 * 4,"Created by Laurie Hedge"
endfunction
This is the majority of the code so far. I have only left out a few irrelivent variables which are not yet used at all. It is sprites 4 and 5 which are becoming double sized; 3 is working fine. I can assure you that they are all 808 X 51 pixels with both frames together.
Any help would be greatfully recieved. Just ask if there is any relivent information I have left out. Thanks in advance for your help.