Jump to content

Bullets and Math.Random()


Goulven
 Share

Recommended Posts

Hi,

I'm trying to create a game where we destroy ennemies with bullets, but when I add   " var sens = Math.Random()*360; "   to make ennemies go in random directions, we can't shoot bullets anymore.

I'm a beginner and don't know why I've got this problem. Any ideas please?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...