My actor sometimes destroy the enemy sometimes not

agueisagueis Member Posts: 420
edited November 2013 in Working with GS (Mac)
Hallo , I have a problem sometimes when i jump into an enemy, the enemy is destroyed and sometimes not when i play Preview,
also I put a lot of Missiles in my game like super mario, they all have the condition that when the actor is in one position the missile begin to move, and also in preview sometimes the Missiles start to move in the correct position and sometimes not, can anybody help me?, thanks.
Sorry if my English is not good enough.

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The Tech Support subforum is for problems running the software so I've moved this to Working with GameSalad since you're having questions about rule behavior.

    You will need to post either a screenshot or write out your exact rules so we can see what's not working.

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

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Like @tatiang said more information would be helpful.

    But I did have a similar issue in the past and I solved it by making sure my player and enemies he needed to destroy were all on the same layer. If they were on different layers it didn't always work as expected. That is just a guess...
  • UtopianGamesUtopianGames Member Posts: 5,692
    It might be best to have a boolean in the enemy...

    If overlap or collide with actor of type hero change self.boolean.Dead to true….if self.boolean.Dead is true destroy.

    Darren.

  • agueisagueis Member Posts: 420
    Hello , I follow this tutorial for enemy jump collision, .
    I have 2 enemy actors, in my first enemy actor the jump works in a 100%, but in the second actor the jump does not work, they are all the same, they have the same values, it´s look like the gravity is different in the two actors positions, because in the second position the enemy actor with the same gravity does not move. My actors are all in the same layer, thanks
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You may have unlocked an actor and created an instance with different rules. Try deleting the actor(s) from the scene and adding them again to test it.

    As I said before, You will need to post either a screenshot or write out your exact rules so we can see what's not working.

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

  • agueisagueis Member Posts: 420
    Thanks tatiang but I unlocked them because the actors must move to different positions
    you mean I don´t have to unlock the actors?, I use: when selfpositionx>600 change atriubute selfmotionlinear velocityx to -100 and when selfpositionx<430 change atriubute selfmotionlinear velocityx to 100,
    thanks
  • agueisagueis Member Posts: 420
    I also have three layers 1 for touch controls; that follow al the scene , other for an image that follow all the scene , and other layer named background where i have all the actor, when i put my actors in scene, i have to put them on background because game salad put my actors i other layers, tanks
  • agueisagueis Member Posts: 420
    Thanks very much I,ve solved It.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Well, when you look at an actor, if you double-click it from the actor's pane window, you are looking at the prototype rules. So if you're looking there and expecting an unlocked instance to behave according to those rules, it won't. Without seeing your project file, I don't know if you need to unlock them or not, but if you choose to it's worth noting that the rule sets can become confusing if you're not used to working with prototypes and instances.

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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Glad to hear you got it working. Because many other people rely on these forums for help, it's great if you can post a short explanation of how you fixed it.

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

  • agueisagueis Member Posts: 420
    Ok, the problem was as you told me, that i was unlocking the enemy actors and my own
    hero actor when i put them on scene, don´t unlock the actors in the scene thanks.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
Sign In or Register to comment.