Posts tonen met het label actoroftype. Alle posts tonen
Posts tonen met het label actoroftype. Alle posts tonen

vrijdag 25 december 2015

Stencyl : Spinning Wheel

A Stencyl-Chat question was how to determine which part of a Wheel-of-Fortune was selected.

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)



Drawing 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: