Wheel had 16 parts. Randomly the parts were between bad things and good things you would receive.
This is the solution I came up with (Click method on Scene)
Update one Scene:
Of course for this little example I wouldn't have to use a list. But when the parts are randomly filled with objects it will do nicely.
The difficult thing was to get the angle of the rotated actor:
Geen opmerkingen:
Een reactie posten