PasteSprite doesn't use x,y , but PasteSpritePosition does and this now works.
function text_centered_init(e)
imgLoc = LoadImage("scriptbank\\images\\Sprite Test\\Lee.png")
Loc_Sprite = CreateSprite ( imgLoc )
SetSpritePosition(Loc_Sprite,-1000,-1000)
end
function text_centered_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 80 then
PasteSpritePosition(Loc_Sprite,50,30)
TextCenterOnXColor(50,50,3,"Location successfully entered",255,0,0)
end
end
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; LG TFT monitor (widescreen). Wanting a new PC at some point.
Interests: Drumming, Saxophone, Art, Theatre, Music.