unique collision groups for each actor instance? (updated with 3.4.0 question)

kierannolan

  • Posts: 64
Hi all,

I'm wondering is this possible?

What I'd like to do is make the collision groups for a number of different instances of the same actor register independently... is there a way to do this without creating multiple copies of the same actor with unique collision groups for each one?

Many thanks

« Last Edit: April 04, 2016, 03:39:58 pm by kierannolan »

CmdrWhitey13

  • Posts: 504
Each shape, you can change how it responds on the right side when setting it up. Not to sure how many you can have on one  though.

LIBERADO

  • *
  • Posts: 2716
is there a way to do this without creating multiple copies of the same actor with unique collision groups for each one?
Yes, install the latest private release of Stencyl because it has new blocks to specify groups for dynamically created collision shapes: http://www.stencyl.com/stencyl/getbeta/
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

kierannolan

  • Posts: 64
excellent, thanks very much, I'll try it out!

kierannolan

  • Posts: 64
Hi Liberado, and everyone!

Can you please advise on how this is used? I have been trying several combinations but having no luck

I have an actor with 4 unique collision groups (an enemy / object that is collided with, not the main player), and would like to have multiple instances of this onscreen, each with their own versions of the 4 groups (a, b, c, d)

I have set up new groups for the extra instances (1a, 1b, 1c, 1d) (2a, 2d, 2c, 2d) and so on...

I've tried  this on a behaviour attached to the actor

when created
set collision group of (1a - new) for [ collision group of (a - original) ]

(please see attachment)

I keep getting the error:

collision_groups_A: String has no field groupID
   from scripts.Design_98_98_collisiongroupsA
   line: 87
   columns: 16-40
collision_groups_A: com.stencyl.models.actor.Group has no field groupID
   from scripts.Design_98_98_collisiongroupsA
   line: 87
   columns: 2-49

Many thanks

Kieran
   

LIBERADO

  • *
  • Posts: 2716
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

kierannolan

  • Posts: 64
Thanks very much Liberdo! it took me a while to figure out how the dynamic shapes work, but I have it working now