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.

Windows / Need help to create a scrolling effect in a region of the screen

Author
Message
Galodron
User Offline
Joined: 10th Oct 2017
Location:
Posted: 12th Nov 2017 19:03
Hello everyone,

Is there anyone who knows if it's possible to create a region on the screen where you can draw scrolling sprites?

Like a scrolling jackpot machine screen that would be drawn over the main background.

The SetScissor function can restrain the drawing in a region but you lose the background image. Well, at least when i tried to do something with that function. But i'm a noob with AppGameKit, so maybe there is a way to do this effect but i can't find any examples.

Is there anyone that can help me do this effect ?

Thank you and have a nice day ! :o)
BatVink
Moderator
14
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 13th Nov 2017 08:54
You can setSpriteScissor() on only the sprites that you need to constrain. The background will remain intact.
Like this...


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt

Login to post a reply

Server time is: 2017-11-25 07:33:31
Your offset time is: 2017-11-25 07:33:31