falling object action?

Hello

how do you multiple falling objects fall from the top? for example: if you touch an actor then it will spawn falling actors coming down. like raining down. thanks

Comments

  • reginald.bernardinreginald.bernardin Member Posts: 346

    thank bj

    i really just meant spawing actors randomly by pressing an button

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375
    edited May 2014

    if touch is pressed spawn actor (for x) random((self.size.width/2),568-(self.size.width/2))
    (for y) 320+(self.size.width/2)
    This will make it spawn half the actor size above the screen and a random x position on screen.
    Do you want it to spawn like this, or for it to spawn random actors on screen?

  • reginald.bernardinreginald.bernardin Member Posts: 346

    somewhat, here is what i am trying to do. I have coin button and if you press it then many coins pop out of the button. But you have to keep tapping the button like in mario where he has to tap the blocks for coins..

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375

    Do these coins need to be coin actors or can they be particles?

  • reginald.bernardinreginald.bernardin Member Posts: 346

    coins actors

  • reginald.bernardinreginald.bernardin Member Posts: 346

    also the i need the gravity to be real time because when i tried in preview the gravity is very light and they float

  • ogagogag Member Posts: 37

    As someone has suggested, I never use gravity. Use move behavior going down. You can have better control of the speed falling down.

Sign In or Register to comment.