Jump to content

Need Help for Random Sprite Group Spawning


Recommended Posts

Will anyone be willing to teach me how to create Random generation of sprites?

I am making a game called Egg Drop which is basically an "apple catch" type game where a basket at the bottom catches infinite spawning eggs from the top until you catch a bee instead of the egg (Bees are the enemies of the game) which causes the game to end.

I need to know how to effectively create a random x for the egg spawning and then put this function in a loop but I haven't been able to do it correctly
(One time I got it, but then it wouldn't be able to be set for collision,  breaking the game)

Also if there is any tips for phaser someone should know, feel free to teach me about them. 

Thank you guys so much for any help given,


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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