Hey, I’d really appreciate your help with this one…
I am relatively new to GDevelop so I’m not that experienced using the engine, but I have a question on how to implement the following in my project:
In the bottom third of the screen, there is a wheel that constantly spins, and spins faster if you touch it. From above, balls fall in different colors. The goal is to match the color of the ball to the section of the wheel that is colored the same.
Now, how do I randomize the balls’ color as well as making sure that the wheel at the bottom actually detecs whether or not it is the correct color?
I know it’s quite complex, so maybe just helping with the color randomization of the ball would help a lot, as I have failed to even implement that haha
There a few steps to this that if you break it down, make the problem quite simple. You haven’t shown us what you’ve attempted or how you have approached the problem though, so it’s hard to help you.
Are you able to show what you’ve done so far, or perhaps your thoughts on how you would achieve your desired outcome?
There is nothing complex here
In fact it is brain dead stupid to achieve
However nothing is simple to someone new
Like you know it is easy to make cake
But if you never made any cake then what do you need?
Sugar eggs flour? But is that all? How many of each?
Yeah its hard until someone tells you how to do it
1 - i would put all balls colors as separate animations for same exact object
You could name each animation by color
You see here my ballz i have more but i also named their animations by color
I can now reference change their animation by name or by animation index
Same way i can check if their animation equal to some number or some name
2 - If i would create ballz object i would change their animation by number
And instead of number change it to RandomInRange(0,2)
Cause that is how many animations i have (well i have more but you see only 0 1 and 2 so random in range 0 , 2)
My last animation is at index 6
So to be exact it would be RandomInRange(0,6)
And that would give me random looking spawn
3 - As for wheel i would simply check if ballz is in collision with wheel
And under it IF ball animation either by color or by name match what i expect it to match