Amazing Brick..... how i code falling Attribute

arabianwolfarabianwolf Member, PRO Posts: 79

how i can make falling attribute like amazing brick

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,944

    What is a falling attribute?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • SocksSocks London, UK.Member Posts: 12,822

    What is 'amazing brick' ?

  • AlchimiaStudiosAlchimiaStudios Member, PRO Posts: 1,067

    Never had an integer just fall right out of place? That's the worst! Don't get me started on falling text strings... the obvious solution is to use a bit bucket to catch them all.

    Follow us: Twitter - Website

  • AlchimiaStudiosAlchimiaStudios Member, PRO Posts: 1,067
    edited October 2014

    Alright, sarcasm aside. I think you mean falling actor, correct? If so you'll need to make a brick actor and make it fall by using some sort of movement downward. I would use the move behavior (gravity, accelerate, move to, move, and interpolate all could potentially work), if you want to recycle actor just say when self.posY is lower then Y value (0, -100, w/e) go back to top (change self.pos.Y), you could also randomize the x pos at this point too.

    If you are looking at using multiple bricks it also might be a good idea to spawn them over and over on a timer with x randomization or something similar. as GS handles spawns pretty well now days.

    Follow us: Twitter - Website

  • arabianwolfarabianwolf Member, PRO Posts: 79

    amazing brick .... https://itunes.apple.com/us/app/amazing-brick/id905455244?mt=8
    i am making game like amazing brick with different idea
    i managed to done 90% of the project
    the problem the camera follow the main actor , when it fall down he died
    but the camera continue to follow the actor so it will keep down till the start of scene
    i hope i can find a solution.

Sign In or Register to comment.