Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / [SOLVED] sprite disapears when i set fixspitetoscreen()

User Banned
Posted: 5th Jun 2020 16:19
i have two other sprites with the fixspritetoscreen() option that are working fine. but when i set my "panel" fixspritetoscreen it disappears . its the same file format as the other two a .png.


Login to view attachments

The author of this post has marked a post as an answer.

Go to answer

Virtual Nomad
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 5th Jun 2020 16:35 Edited at: 5th Jun 2020 16:41
This post has been marked by the post author as the answer.
your lowerpanel code:

1) you've placed the sprite off-screen (53, 975 while: SetVirtualResolution( 1020,740 ))
2) you've commented out FixSpriteToScreen(lowerpanel,1)

while i'm here, if you've already loaded a sprite's image, you may as well use it when you create the sprite. ie, instead of:

User Banned
Posted: 5th Jun 2020 16:48 Edited at: 5th Jun 2020 16:56
nomad yes i did comment it out while i was testing it to see why i would see it without fix to screen. but i see now it was my screen offset throwing me off ill spend ours looking at my code then as soon as i make a post i find out the simple solution lol now the problem im having is when i go to move my character it jumps off screen then moves fine as far as fix to screen and positioning works
Valued Member
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 5th Jun 2020 21:54
If the image will not be used anywhere else.

Login to post a reply

Server time is: 2022-12-01 12:38:22
Your offset time is: 2022-12-01 12:38:22