- Wed 5 Dec 2018, 12:53
I decided to solve the problem visually, it turned out to be quite easy.
I just used the X position of a draggable sprite to feed into a global variable for the next scene. This provides a whole number between 0 and 777 and nothing else, which was what I wanted.
There are a few problems with this method, mainly you can only generate numbers within the size of the screen unless you use multipliers.
I'm not sure why, maybe someone with more experience can explain it, but I had to do -69 to the X position to get it to zero. The pointer starts at X 40 and the sprite "Pointer" position is set to 32, which should be 72?
I've attached my events for it, let me know what you think.
ScoreSlider.png (100.59 KiB) Viewed 91 times