Skip to main content
Inspiring
November 8, 2022
Question

Ok team, help me build asteroids (for education)

  • November 8, 2022
  • 2 replies
  • 639 views

Hi team,

I dont even want to build the whole game, I would be happy to get the little triangle to thrust around and turn!  I work in education and would be more than happy to post up some tutorial material if the community here can help me out to make it work - but just to be clear of the noob level here - we need code or examples that will actually work in animate cc html5 canvas - or at least some detailed hand holding for how to get it to work in animate.

I can get the stage, the triangle moveClip (even how to make the thrust frame work inside this mc)

What listener do I use for the keyboard strokes?  How do I do the sin, cos triangle thing to get the direction to allow diagonal or 360 degree movement?

I would really appreciate some help to make this work and I think (unless I am not looking in the right place) that there are no tutorials for player movement in html5 canvas like this.

Thanks for your time and efforts

have a great day

    This topic has been closed for replies.

    2 replies

    JoãoCésar17023019
    Community Expert
    Community Expert
    November 8, 2022
    Inspiring
    November 8, 2022

    Awesome thank you!  There is quite a bit here to go through!  It will take me a while to work through 🙂  

    I like your example with the movement through keystrokes - this is brilliant and will get us started for sure.

    I will have to dedicate some time to working out how the Zim works..

    Thank you very much and have a great day

    JoãoCésar17023019
    Community Expert
    Community Expert
    November 8, 2022

    Fantastic! You're welcome!

     

    Please let us know if you need further assistance.

     

    Regards,

    JC