Teabone
You need to call a "SetSpritePosition" before you call a "PasteSpritePosition", on startup.
You need to call a "PasteSpritePosition" at least one script cycle after the "SetSpritePosition" is called.
So a "PasteSpritePosition" does not work in the init function.
If you do use a "PasteSpritePosition" in the init function, it "Sets" the sprite to position 0,0
Just the same as it does if you do not call a "SetSpritePosition", on startup.
So using a "PasteSpritePosition" in the main function will layer an image behind the ammo/health hud and prompts.
Cheers
function hud_future_init(e)
sspr0 = CreateSprite(LoadImage("scriptbank\\images\\huds\\001.png"))
SetSpriteDepth ( sspr0,100)
SetSpriteSize ( sspr0,100,20)
SetSpritePosition(sspr0,200,200) -- positioned off screen
end
function hud_future_main(e)
PasteSpritePosition(sspr0,0,80)
Prompt(" ..You should see this Text.. ")
end
Desktop: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz, ~3.6GHz, Windows 10, 64-bit, 16 GB Ram, NVIDIA GeForce GTX 750 Ti, Display Memory: 4018 MB. Resolution 1360x768.
Operating System: Windows 10 Home 64-bit (10.0, Build 15063) (15063.rs2_release.170317-1834)
PT V9.0 3DMark=4344, Passmark=3291.
[RIP] Laptop: Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)
PT V9.0 3DMark=377, Passmark=1222.