Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Trying to spawn sprites in random spots and make them fly across the screen.

I want to spawn sprites in random x/x coordinates outside of the view, and when they spawn I want them to move across the screen. Here's the code I have already. I'm not sure how to start going about this at all. I've tried messing with CGPositon and couldn't figure it out.

code (Click to View)
What about giving each sprite a random velocity in X and Y and a random spawning position outside of the screen?


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Lua] by Caleb TynesSep 24, 2017 05:48 AM 2 407 Sep 24, 2017 05:48 AM
Last Post: JumpT
by FolksJan 27, 2017 04:06 PM 2 111 Jan 27, 2017 04:06 PM
Last Post: Folks
[Help] by joneh heilAug 23, 2014 09:30 PM 2 79 Aug 23, 2014 09:30 PM
Last Post: RuffledUp