Help :(

peachpellenpeachpellen Member Posts: 977
edited November -1 in Working with GS (Mac)
I'm completely new to GS but normally quite good with this kind of thing; the problem I am having is that I've followed this tutorial (http://gamesalad.com/wiki/how_tos:count_actors_in_the_scene)
4 or 5 times now.

It just isn't working for me and I can't tell why. The text displays the whole time the actor/s are on the screen.

Any help appreciated; it's SO frustrating and as I am currently quitting smoking very, VERY bad timing >.<'

Why wont it work? What am I doing wrong?

Comments

  • iDeveloperziDeveloperz Member Posts: 1,169
    You will need an attribute, call it time. (Integer)
    Add another call count.

    In the actor have a every 1 second
    > Change attribute
    > game.time to game.time +1

    And in an actor Add;
    >Change attribute
    > game.count to game.count +1

    The add 2 more actors and in them both add a 'display text'.
    Then in one add,
    game.time
    In the other,
    game.count

    That should do it :)

    I have to go to school though now follow me on twitter and ill tweet if your stuck. :)

    www.twiter.com/ideveloperz
  • peachpellenpeachpellen Member Posts: 977
    I appreciate the reply but I didn't explain properly - sorry; like I said I'm quitting smoking so my head is pretty fuzzy right now >.<'

    The idea is this - multiple bugs on screen; user kills all bugs, goes to next scene.

    I don't understand the time integer, but hope that what I'm saying makes sense and that I just wasn't clear before.

    I'll add you on twitter in a moment, just posting this here as I'm hoping to clarify in more than 140 chars ;)
  • ChaserChaser Member Posts: 1,453
    You need to go to game create an attribute call it something like (all dead go next level). Give it interger like 0. On each of your bugs put in a rule like when touch is pressed change attribute. Game.all dead go next level+1 so when you reach a certain kill number go to next scene. Create an actor call it all dead go next level and give it attribute when kill number hits let's say 10 go to next scene. On your scene you can display the kill number or change the opacity to 0 so nobody ever sees it. On next scene you may want it to hit a higher number. I personally would keep opacity zero on this actor if you already have a score display
  • peachpellenpeachpellen Member Posts: 977
    Chaser, I've only just woken up but that sounds logical to me - thank you. I will try it after I've had some caffeine.

    Thank you :)
  • ChaserChaser Member Posts: 1,453
    You must be on the other side of the pond or a total vampire LOL! As I'm going to bed let us know if you need help
  • peachpellenpeachpellen Member Posts: 977
    It doesn't seem to be working.

    I created the integer, set it at 0 and named it "all dead go next level" - it made sense as I was following your advice and wouldn't get confused halfway through and risk calling it the wrong thing.

    I went into the bug actor and set it so that "when touch is pressed - change attribute game.all dead go next level - game.all dead go next level+1"

    Then the standard thing of when the touch is released to destroy it.

    Then I created my other actor - calling it "next scene" - and set it to;

    "When game.all dead go next level = 4 - change scene - go to next scene"

    Still not working; what am I doing wrong? I'm sure it is simple but I am completely new to GS and so this kind of thing isn't intuitive for me yet.

    Is it because I'm destroying the enemy actors?

    (4 is because there are 4 bugs in my example.)

    PS - I'm in Australia, normally I'm nocturnal, however quitting smoking has made my hours more normal - or opposite, give or take a few hours, to your own. :)
  • ChaserChaser Member Posts: 1,453
    I'll see if I can get a demo set up for you this morning
  • peachpellenpeachpellen Member Posts: 977
    If you can that would be just awesome; huge, HUGE help - if not, but sometime in the not too distant future, that would also be INCREDIBLY helpful for me.

    I'm off to bed in a few, but will check in when I'm up again.

    Thanks very much again - sorry I just don't seem to be getting it >.<'
  • ChaserChaser Member Posts: 1,453
    just submitted it . go to your GS program and go to shared then type in go to next scene and you will see it say by chaser
  • peachpellenpeachpellen Member Posts: 977
    Found it - checking it out now :D

    Thanks Chaser.
  • peachpellenpeachpellen Member Posts: 977
    Thank you! That worked :D

    Much appreciated :D
  • ChaserChaser Member Posts: 1,453
    No prob hope it helps be sure to look at the game tab attributes and all actors to see how they interact
Sign In or Register to comment.