- Home /
Question by
Panos Makris · Jun 21, 2015 at 05:40 PM ·
rotationjavascriptmovementscripterror
Rotating Sprite 2D with JAVASCRIPT coding.
I am building a game and I am facing a problem. I am trying to make a sprite (=CannonSprite) which can rotate randomly and shoot an object in unspecific time.Could you please help me ?
Comment
$$anonymous$$aybe. What problem are you having? $$anonymous$$aybe post some script code if what you have written doesn't work.
Answer by Panos Makris · Jun 22, 2015 at 03:50 AM
No it is working but it doesn't do what I want it to do
Answer by Xarbrough · Jun 22, 2015 at 12:25 AM
Maybe this is a suitable introduction: Unity official - Making an Angry Birds style game
As for Javascript... for various reasons most people consider C# to be the better option in Unity, but you should generally be able to translate from one language to the other: