Discord
Login
Community
DARK THEME

Confused new

I was trying to make red circles settle across the map randomly and make it so that if you touched the circle you would be killed I am new and am confused also I could use help on collisions. link here https://microstudio.dev/i/MythicFist/myfirstgame/

You're assigning coin.x twice inside the loop in your draw function. In general, try not to assign variables in draw function - you should assign values in update (which is responsible for updating and changing state of your game) and read those values in draw function for the purpose of drawing.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community