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 / SetSpriteScissor and viewoffset

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 4th Aug 2023 09:43 Edited at: 4th Aug 2023 09:53
Hi

Do you know how I can fix the bug when I move the viewoffset and the sprite should not be visible (at left), because the spritescissor bug and the sprite is shown, I don't know why



AGK2 tier1 - http://www.dracaena-studio.com

Attachments

Login to view attachments
PSY
Developer
8
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 8th Aug 2023 00:17
Your code works fine in Classic, in Studio the sprite is stuck at the left border for a bit before it finally begins to move again. The bug in Studio is gone if I replace SetSpritePosition() with SetSpritePositionByOffset()


PSY LABS Games
Coders don't die, they just gosub without return
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 11th Sep 2023 08:34
HI thanks
If I replace by setspritepositionbyoffset(), I don't have the bug too.

Thanks again
AGK2 tier1 - http://www.dracaena-studio.com

Login to post a reply

Server time is: 2024-11-21 10:04:20
Your offset time is: 2024-11-21 10:04:20