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.

AppGameKit Classic Chat / AGK v2 - Rendering to Image is there something im missing? ? ?

Author
Message
haliop
User Banned
Posted: 20th Dec 2013 08:56
trying to draw with a sprite on an image but cant..




any suggestions?

The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 20th Dec 2013 11:46
My guess is that you would need to sync() or render2dBack() (and or front) between setRenderToImage and SetRenderToScreen. You should probably also draw the the new image on something to make it show up before syncing().

Say ONE stupid thing and it ends up as a forum signature forever. - Neuro Fuzzy
apocolyp4
13
Years of Service
User Offline
Joined: 10th Jun 2010
Location:
Posted: 20th Dec 2013 15:08 Edited at: 20th Dec 2013 15:13
haliop sync() doesnt work with the command so you need to Swap() and render() so replace your do loop with this:

haliop
User Banned
Posted: 20th Dec 2013 21:59
thank you for your comments..
but this dosent work i get a black screen with nothing on it :/

Login to post a reply

Server time is: 2024-05-02 02:38:36
Your offset time is: 2024-05-02 02:38:36