Hi,
When i trying to set a position of my "splashscreen", all works correctly for me, but for a friend, i get this (screen of attachment).
For me the bug is while the sync of sleep function.
Why ?
This is my code to show it :
if (GetDeviceBaseName() = "linux" or GetDeviceBaseName() = "windows")
screen_game_type.resolution_x = 1440
screen_game_type.resolution_y = 2560
else
screen_game_type.resolution_x = 1440
screen_game_type.resolution_y = 2560
endif
map_anthill_type.zoom# = 1
image_introduction_type.splashscreen = LoadImage("introduction/splashscreen.png")
SetWindowTitle("Antinnihilation")
SetWindowAllowResize(1)
UseNewDefaultFonts(1)
// SetOrientationAllowed(1, 1, 1, 1)
SetWindowSize(GetDeviceWidth(), GetDeviceHeight(), screen_game_type.fullscreen)
SetVirtualResolution(screen_game_type.resolution_x, screen_game_type.resolution_y)
SetOrientationAllowed(1, 0, 0, 0)
SetViewOffset(0, 0)
SetViewZoom(map_anthill_type.zoom#)
Sync()
sprite_introduction_type.splashscreen = CreateSprite(image_introduction_type.splashscreen)
SetSpriteDepth(sprite_introduction_type.splashscreen, 0)
SetSpritePosition(sprite_introduction_type.splashscreen, 0, 0)
Sync()
Sleep(1000)
sprite_menu_type.background = CreateSprite(image_menu_type.background)
SetSpriteDepth(sprite_menu_type.background, 0)
SetSpritePosition(sprite_menu_type.background, 0, 0)
for i = 0 to 255
if (GetPointerPressed() = 1)
i = 255
endif
SetSpriteColor(sprite_introduction_type.splashscreen, 255, 255, 255, 255-i)
SetSpriteColor(sprite_menu_type.background, 255, 255, 255, i)
Sync()
next i
SetSpriteVisible(sprite_introduction_type.splashscreen, 0)
For him, all is perfect just after the begin of the fade (the for loop).
But before, he got the bug.