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] Quiestion about CreateSprite/LoadImage and the generated ID

Years of Service
User Offline
Joined: 5th Nov 2017
Posted: 26th Nov 2018 20:11
This post has been marked by the post author as the answer.
Hey there,
I've a strange behavor in my code:

My mouse (pointer is invisible) have a sprite to show the position of the mousepointer - the pixel is for collisionchecks:

This sprite is loaded at the start of the game and is global. Later in my code I declare an integer to get another sprite for the background:

In a loop I refresh the position of the mousesprite:

When I test this code and run the game, the backgroundSprite ist now my Mousesprite. I debugged this and saw, that both, the sprite for the mouse and the backgroundsprite have the same ID. Are there some limitations or I do something wrong to create sprites?

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

Go to answer

Login to post a reply

Server time is: 2019-08-19 08:31:13
Your offset time is: 2019-08-19 08:31:13