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 / [SOLVED] SetRenderToImage

Author
Message
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 4th Nov 2020 06:00
Hi,
I need to create a window, where I'll draw an animated sprite.
I decided to use the "SetRenderToImage" function. Although it seems to work OK, I cannot place this window in a specific place on the screen
Here is my coding:

Any help?

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

Go to answer

MadBit
VIP Member
Gold Codemaster
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 4th Nov 2020 07:01
This post has been marked by the post author as the answer.
There's not much wrong there, just a typo.
you have set the variable windowImg but create an image in variable windowImage. After all you only use the empty windowImg.

Here is a slightly modified version
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 4th Nov 2020 13:14
My post was silly.
Thank you

Login to post a reply

Server time is: 2024-11-21 22:31:08
Your offset time is: 2024-11-21 22:31:08