Problem collision counter???

ChaserChaser Member Posts: 1,453
edited November -1 in Working with GS (Mac)
I have an actor that adds to a counter when hit by another actor. Like score!
However if I have 2 of the same actor hit this score keeper at almost the same time then it only counts the score once. I've tried timers and run to completion. And I must keep the 2 actors exactly the same. Any ideas

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi Chaser, try clicking on the padlocks of the 2 of the same actor; this way they become independant Instances, and so should then affect the score independently.

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • ChaserChaser Member Posts: 1,453
    I have them spawned so I think this complicates things!
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hmm, you're right! Don't think there's a way to make a spawned actor an independent instance, is there?

    The only way round it, that I can think of - if it fitted with the style of your game - would be to have them off-screen; so rather than spawned, placed in position, with an attribute triggering their movement, etc; after moving them on-screen; but I guess you've thought of that.

    Hopefully someone else knows how to get round this problem, if you need to stick with spawning...sorry I couldn't help.

    Edit: of course, providing you've not too many to spawn, one easy way round it would be to have the spawned actors as separate actors, with identical Rules.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • ChaserChaser Member Posts: 1,453
    Gyroscope
    I'm dealing with spawned dice so I want to keep the odds correct. But you sparked a thought that I'll have to work on. Thanks!
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    You're welcome. I actually got something right; ha! :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • HachikoHachiko Member Posts: 330
    What if you made the other actors the score keeper? I mean, the problem seems to be that there's one actor, that when it's hit by another actor, change the score to score+1. If instead, every other actor that collides with him change the score to score+1, it might work. maybe. xD
  • ChaserChaser Member Posts: 1,453
    Hachiko

    I'll have to try that. Less complex than what I was thinking of doing
    Thanks!
  • ChaserChaser Member Posts: 1,453
    Hachiko said:
    What if you made the other actors the score keeper? I mean, the problem seems to be that there's one actor, that when it's hit by another actor, change the score to score+1. If instead, every other actor that collides with him change the score to score+1, it might work. maybe. xD

    That worked and it all is working on fast app switching as well
  • HachikoHachiko Member Posts: 330
    Glad it helped! Good luck with your game :)
Sign In or Register to comment.