Collide rule doesn't seem to work

KjakaKjaka Member, BASIC Posts: 11

Hi there,
I am trying to make a game that takes swipe input and move some squares according to swipe direction. But some squares as a game rule should be colliding and some not. When I set the collide behaviour to "actor of type" it works. But i need to use it with tags and when I choose it with tags it doesn't seem to respond. I tried various rule combinations and timer workarounds but none seems to be working. What is changing when i set it to tags rather than type? I checked if the tags are given correctly and they are. the only thing i change is "actor of type" then it works, with tags it doesn't. what could be the problem?

Answers

  • pHghostpHghost London, UKMember Posts: 2,342

    Which version of GS are you using? I just tried it in the latest RC 0.13.16 and it works for me.

  • KjakaKjaka Member, BASIC Posts: 11

    it says; "GameSalad 0.13.14 is currently the newest version available." to me.

  • KjakaKjaka Member, BASIC Posts: 11

    http://forums.gamesalad.com/discussion/50949/tags-and-collision-weirdness

    Last post at this link made me think of reference to tags. I am giving the actors their tags in-game and i assume that they are not added to the predefined tag group. When I test with a rule, "if tag is green" for example, it works, but when i choose the tag "green" from the menu of the function 'collide', it seems to be that my actor tagged "green" has a different tag group than my predefined tag "green". Although the names are same. I tried referencing with double quotes but can't seem to add an actor to a predefined tag in-game. Any idea would be appreciated. Thanks

  • vindictuss@yahoo.comvindictuss@yahoo.com Member, PRO Posts: 55

    how do you add tags? i cant click the attribute tag

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    @vindictuss@yahoo.com, in the Actors Window use the + and - buttons in the lower left of the screen to add and delete tags. Then drag your actors into/onto the tag(s) you want applied to them.

  • KjakaKjaka Member, BASIC Posts: 11

    I need to change the tags of the actors in-game. I did what you said and created some tags and I can't add any actor to that group in-game. I did; Change Att. "self.tags" to "green". And I created a tag "green" beforehand. but when I change the attribute in-game, actor is not included in the tag group created beforehand. And when I try to use "Collide" it offers me the tag created beforehand but there aren't any actors in it.

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    I'm not entirely sure you can dynamically change an actors tags in game. It's sounding like you can't. There are some attributes you can't, like 'Moveable', maybe tags are another.

  • KjakaKjaka Member, BASIC Posts: 11

    you can change the self.tags attribute. I tested it and it changes. But only the self.tags attribute is changing. It doesn't put the actor in the predefined tag group although their names are the same.

Sign In or Register to comment.