Help? (Probably quite simple, just not to me.)

peachpellenpeachpellen Member Posts: 977
edited November -1 in Working with GS (Mac)
Hi guys,

Having an issue in a game I'm trying to make - basically it is this;

Actor may drink from 6 different vials.

Actor may drink any number of the vials; including 0 or 6.

Each combination results in a different next scene.

Actor drinks X vial(s) and then clicks a button.

The problem I am having is that when the button is pressed it does not always respond how I'd like; it is set up like this -

If red vial = true
blue vial = true
*insert other 4 vials here* = false
Go to X scene

I have around 10 of these rules so far, with if all = false going to scene Y

The problem is that often it will go to scene Y when it should be going to scene X.

Can anyone help me out here, please? :)

Comments

  • butterbeanbutterbean Member Posts: 4,315
    When you put the rule in:

    If red vial is true, and blue vial is true (insert other vials here=false)

    do you put:

    If ALL is true: ?
  • jmp909jmp909 Member Posts: 73
    you could probably simplify this hugely by using binary representation for your vials

    111111
    101001
    etc

    so...

    redVial = 1 (point)
    blueVial = 2 (points)
    greenVial = 4
    purpleVial = 8
    orangeVial = 16
    cyanVial = 32

    then every time the player drinks a vial add it's points to game.potionDrunkAmount

    then

    if(game.potionDrunkAmount) = 1 changeScene ("Red Scene");
    if(game.potionDrunkAmount) = 2 changeScene ("Blue Scene");
    if(game.potionDrunkAmount) = 3 changeScene ("RedBlue Scene");
    etc

    I don't know how you're passing your "which vial is drunk" value around though

    presumably if each actor is edited (instance unlocked) separately they can each have their own potionAmount value (relating to my Vial binary amounts above), and then possibly in the prototype you can have

    when the vial actor receives mouse down
    game.potionDrunkAmount = game.potionDrunkAmount + self.potionAmount
  • peachpellenpeachpellen Member Posts: 977
    Butterbean: Yes; I do.

    Jmp909: I think I might try that; integers have always been easier for me than booleans. :)
  • design219design219 Member Posts: 2,273
    This sounds like an intriguing game... care to share any details?

    _______________

    Tickle Stones http://itunes.apple.com/us/app/tickle-stones/id363484260?mt=8
    Food Fight! (free) http://itunes.apple.com/us/app/food-fight/id352646643?mt=8
  • peachpellenpeachpellen Member Posts: 977
    Thanks Design :)

    I'm going to say no; not because of privacy fears but simply because I'm still not exactly sure what it is that I'm making - it is kind of doing its own thing. It still has no title and no plan behind it. ^-^; I don't even think it has a genre, yet.
  • quantumsheepquantumsheep Member Posts: 8,188
    peachpellen said:
    Thanks Design :)

    I'm going to say no; not because of privacy fears but simply because I'm still not exactly sure what it is that I'm making - it is kind of doing its own thing. It still has no title and no plan behind it. ^-^; I don't even think it has a genre, yet.

    It's a drinking game, surely?

    (my favourite!)

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • peachpellenpeachpellen Member Posts: 977
    I want to make a drinking game - I have some ideas for one - but no, this is .... something else. I don't know what ^-^;

    I started making it after I accidentally took expired Zoloft - so it's a bit trippy XD
  • design219design219 Member Posts: 2,273
    peachpellen said:
    I started making it after I accidentally took expired Zoloft - so it's a bit trippy XD

    Okay, now I can't wait!

    Honestly, with the recent discussions about originality, I'm glad to see something forming more organically. There may be something like what you are talking about, but I'm not aware of it. Best of luck.
  • quantumsheepquantumsheep Member Posts: 8,188
    I wrote 'Unbearably Wonderful' in a couple of hours while drunk...

    http://itunes.apple.com/gb/app/unbearably-wonderful/id349893695?mt=8

    Does that count???

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • design219design219 Member Posts: 2,273
    Wow, QS, I just realized I never reviewed Unbearably Wonderful.

    Fixed.

    I'm looking forward to an update!
  • design219design219 Member Posts: 2,273
    ...and how did it sell?
  • peachpellenpeachpellen Member Posts: 977
    QS - I can't tell from the screenshots if it is depressing or awesome ^-^; When I get an iPhone I'll test it out; I'm still scraping together the money for one.

    Design - I read the originality discussion; I'm currently working on 3 or 4 apps - one will likely be trashed; it just doesn't feel polished. So let's call it 3 - of those three, all very simple - 1 is a rip off of an old but popular game, but it will be free.

    The other two are, I'd like to think - very original. They probably have been done; maybe - but I did think them up for myself. ^-^; Thanks.

    Now I just have to hope that someone who can draw worth a damn doesn't come along and recreate them better than me XD
  • quantumsheepquantumsheep Member Posts: 8,188
    @peachpellen - "I can't tell from the screenshots if it is depressing or awesome ^-^" - I like to think it's a bit of both!

    @design219 - I sold enough to cover the cost of the beer that got me to make it in the first place. Seemed appropriate enough :D

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • quantumsheepquantumsheep Member Posts: 8,188
    Oh, and I forgot! You can see 'Unbearably Wonderful' for free here: http://gamesalad.com/game/play/33900

    :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • peachpellenpeachpellen Member Posts: 977
    Thanks QS - will check it out after I shower :)
Sign In or Register to comment.