help with some game logic

FViMaginationFViMagination Member Posts: 89
edited May 2013 in Working with GS (Mac)
I'm gonna make a "bad" question, as we use to say in our country, which means that maybe the answer won't be so easy to post here, but i'll give it a try anyway.
i wanna make a game like Steppin Stones: http://www.kongregate.com/games/emieldegraaf/steppin-stones
When I first saw it i said "wow, i can make it in 5 minutes", but i was wrong, and now i'm stuck with some game logic :)
So, check this pic out: http://fvimagination.web44.net/example.jpg
my game logic does like this:
touch the Actor3 - Spwan 4 Arrows - touch the Down arrow - spwan 3 actors down the Actor3 Pos.Y (and the 3 spawned new actors are 3 different Actors like blue1, blue2 and blue3, not the same BlueActor spawned for 3 times)
this is because each Blue Actor has a Rule that says "when blkue1 overlaps green2, move the Actor 42px down, etc."
Hope everything's clear so far.
so the issue is on the second Actor3, the one into the red circle, because its blue1 actor collides with another blue1 actor (the ones that has been spawned by the upper Actor3), and my logic doesn't work well anymore, because of course it will keep spawning blue1 actors over an over, since a created blue1 actor always collides with blue1, it's the same actor...
All right, I can't figure out how the Steppin' Stone logic works and how i can put it to work in GS.
I know, it's a "bad" question, isn't it? :) :)

Best Answers

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    I think it's a good question. And I wouldn't spawn and move actors. I would use a table with grid positions and show/hide actors as needed. That way you set up all possible squares ahead of time and hide them. Then based on the table row & column, you show any needed squares.

    5 minutes, unfortunately, wasn't a very good estimate. :P

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

  • natzuurnatzuur Posts: 304
    Accepted Answer
    Yeah tables for sure. The initial set up will be a little time consuming, but you could set up all levels based on one master grid after that.

Answers

  • FViMaginationFViMagination Member Posts: 89
    any ideas?
    i knew mine was a "bad" question :D
  • FViMaginationFViMagination Member Posts: 89
    all right, guys, I'll give it a try, thanks so much for your suggestions! ;)
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited May 2013
    Looks like my post was deleted when you clicked Yes for "Did this answer the question?" It's an annoying bug that causes forum content to be deleted.

    If you need me to re-post, um, I'll try to remember what I said!

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

  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2013
    Looks like my post was deleted when you clicked Yes for "Did this answer the question?" It's an annoying bug that causes forum content to be deleted
    @tatiang

    What's even worse is that the very post that resolves the question posed in the OP is the one deleted, so we now have dozens of threads rendered useless to future users looking to resolve the same issue . . . .

    I've personally had a few posts that have answered a user's question (and marked as answered) deleted, I wonder if this 'answered' feature cold be switched off for the moment, at least until it's fixed ?

    @saladstraightshooter
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    @Socks I asked saladstraightshooter about it earlier today and am waiting to hear from him. I'm hoping it can be disabled.

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

  • FViMaginationFViMagination Member Posts: 89
    it's ok, tatiang, your answer wass about using tables and i remember it !
Sign In or Register to comment.