samedi 8 août 2015

Creating a Random Position for a Sprite in Swift

I have a circle sprite that I would like to move to a random position within the confines of the iOS device's screen. I am trying to do this in Swift, but I am still I beginner and I don't even know where to start. Does anyone know what to do to create a random position for the sprite? Thank you in advance!

-Vinny




Aucun commentaire:

Enregistrer un commentaire