Spawning problems.

Okay I have 2 problems.

Problem one:
I need to spawn 2 objects in three locations randomly.
Example:
O=object S=space

OSO
SOO
OOS

Problem two:
I need these to spawn more and more quickly and I'm not sure if my current equation will work.
My game uses a score system so every second adds 1 onto the score attribute.
I'm using this attribute to help make these spawn faster and faster.
Example:
(This is in a timer)
5-Game.Score/50

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited March 2013
    It doesn't actually use Spawn behaviors, but this should work for what you need. It randomizes the positions of two "objects." I don't really understand your scoring system so maybe you can post a screenshot of the rule/behaviors you're using and we can go from there.

    I also have this demo that allows you to set up a table (e.g. with image names) and then randomize the contents, but I don't know if it's fast enough for you: http://forums.gamesalad.com/discussion/53553/demo-randomize-table-rows

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

  • ericzingelerericzingeler Member Posts: 334
    Okay I have 2 problems.

    Problem one:
    I need to spawn 2 objects in three locations randomly.
    Example:
    O=object S=space

    OSO
    SOO
    OOS

    Problem two:
    I need these to spawn more and more quickly and I'm not sure if my current equation will work.
    My game uses a score system so every second adds 1 onto the score attribute.
    I'm using this attribute to help make these spawn faster and faster.
    Example:
    (This is in a timer)
    5-Game.Score/50
    Does the combination always have to be 2 O's and 1 S?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The demo I posted above looks like this:

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

  • 3itg3itg Member, PRO Posts: 382
    @tatiang
    video link is private
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    @3itg Sorry about that! I meant to post the link but then I embedded it. It should work now.

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

Sign In or Register to comment.