help with some game logic
FViMagination
Member Posts: 89
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?
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
-
tatiang Posts: 11,949I 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. :PNew to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
-
natzuur Posts: 304Yeah 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
i knew mine was a "bad" question
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
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
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User