Collision problem with different collision groups in a single Actor

Zeanon

  • Posts: 44
Hello fellow stencylers again! :D
Ok, so i have a road actor with a cliff like thingy.
What i want to do is to set that when the player is on the road it is ok to jump but when it is on the cliff you cannot jump (so it can kill it self by diving into the cliff and out of screen).
The collision code for the player works just fine and he jumps when on road, but then i added the code for it to detect the collision when the character is on (or over) the cliff and although it should work just fine, it doesn't.
What i found out is that in the collision shapes i made for the actor although the two sides were defined as Tiles and the shape for the cliff is selected as a different group called cliffs the cliff group is not detected when i test the scene  because in the properties the actor is selected as a group of tiles. The exact opposite happens again when i select from the properties the group of the actor as a group of cliffs and the effect in the test game is not letting the player jump. What i understand is that although in the collision properties i am able to assign different shapes for different groups in the same actor somehow they don't work except only for the type of the parent group .
 
Sorry for the long post but i don't know how else i should describe the problem with less words.
Thanks for any advise in advance   :)

MichaelPel

  • *
  • Posts: 458
I'm too tired right now to understand even half of what you wrote, especially that eglish is not my native, but from what I understood, you created a custom collision-group and it does not work the way you intended? I'm not sure what to do there but perhaps regions would work better?

MichaelPel

  • *
  • Posts: 458
Actually nevermind, I understood what is the issue. The player's collision group is most likely not set to collide with your custom collision group. Could that be it?

Zeanon

  • Posts: 44
No i did set my player to collide with both groups Tiles and Cliffs. So no this is not the problem.
What happens is that when i test the scene the road actor is set only to the parent group collision type and does not include the other collision shape i set as a cliff group.
Thanks for trying though  :)

Zeanon

  • Posts: 44
Basically what happens is that i cant seem to get a collision shape to register as a collision in the group for which I set it. It keeps registering as the actor's collision group.     

Is this a bug?

MichaelPel

  • *
  • Posts: 458
have you changed collision both for the actor and the animation?
Sorry for patronising question

Zeanon

  • Posts: 44
Sure..
Listen in the Groups i have set my actor(the player) to collide with both tiles and cliffs and of course i set both cliffs and tiles to collide with the actor. As i said before it seems that somehow it registers the collision shape the same as its parent actor group rather than the different group i assigned it to.
The same problem was found and in an other post..
http://community.stencyl.com/index.php/topic,36171.0.html
Just for reference

MichaelPel

  • *
  • Posts: 458
Can't really help you here, sorry. This sounds like a bug within Stencyl.
I've heard Stencyl 3.3 is coming out soon, let's hope it gets fixed by then.

Zeanon

  • Posts: 44
Thanks even if you couldn't do anything i am happy that at least someone tried to discuss the matter with me..
As you said i think so too that it is a bug within Stencyl. Lets hope it does get fixed,  :)

PhilIrby

  • Posts: 545
Has no one posted this to Bugs?

Zeanon

  • Posts: 44
No not yet as it seems.. Still i wanted to leave the question open for a while to see if other people have the same problem, just to be sure it is a bug and not something i might be doing wrong. As it is i think its a bug but i saw only two or three people talking about it other than me.