Animmaniac's Forum Posts

  • You do not have permission to view this post

  • You want to select only one of those 50 objects and make it visible, or you want to select all objects?

  • 0plus1 you use a "Compare instance variable" condition for picking. I think you need to understand better how picking works, every event that reference an object is picking, not just the conditions that start with "Pick".

    You can get more information here:

    http://www.scirra.com/manual/75/how-events-work

  • Yes, it's possible to have the same functionality as a family tree, but you have to add each object individually to multiple families, instead of adding a family to another one (that would consequently add all the belonging objects automatically).

    According to your explanation about constructors and destructors, they seem like an equivalent to the conditions "On object creation" and "On object destruction". There's no such thing in C2 yet, but I must say that would be very useful indeed.

  • Is it possible then to set the unique ID to something arbitrary?You can make an equivalent of an arbitrary unique ID by assigning a custom value or string to an instance variable. Then you can pick the instance by comparing the instance variable. It works the same as picking by UID. Just be aware that if there's more than one instance with that same value they will be picked as well.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • As I said, you can, simple do invisible sprites, then pin them on the point where you want that area checked.Yes it's doable to some extent (without circle collision support obviously), but it becomes a nightmare to manage if your sprite has animations. You need to create an entire new system through events to support animating the collisions.

    And kiyoshi, actually you only need to add collision test between circle and polygon, since the other primitives like square and triangle are also polygons. I don't know about performance, but it surely would help cover some shapes uncoverable by a single collision polygon.

  • It would be great if it was possible to create a collision mask combining multiple primitives, this way more complex forms (like circle) would be possible to some extent.

    Maybe something like this, where you could place, resize and rotate them at will:

    Screen 01

    Screen 02

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • To top-left corner use:

    set X to scrollX - windowWidth/2

    set Y to scrollY - windowHeight/2