trustnax.blogg.se

Stencyl players
Stencyl players











stencyl players

They may be useful if you want a quick way to designate an actor as "non-colliding" ShapesĪs we talked about in the Animations section, Actors can take on different Animation states. Default groups cannot be edited or removed.īy default, Doodads and Regions never get involved in collisions. You can set an Actor's collision properties, and specify the group it belongs to, in the Properties page of the Actor Editor.Įvery Stencyl game starts out with a default set of Groups to help you get started. Next, click the Groups button (shown below), and you'll see a dialog that shows the Collision Groups in your game, the green Create New button that lets you make a new Group, and other settings. Click the Settings button to open the dialog.

stencyl players

You can set up Groups in the Settings dialog. Conversely, collisions are ignored between groups that are not set up to collide with each other. Groups tend to be named after certain classes of Actors, such as “Players” and “Enemies.”Ĭollisions happen between groups that are set up to collide with each other.

stencyl players

Groups are arbitrary collections of Actors. However, what if you only want certain collisions to happen? For example, if any enemy shoots a bullet, the bullet should only collide with the player, not other enemies. More Collision Handling (Sides, Groups, Points)īecause Stencyl is powered by Box2D, collisions happen automatically, as if every object existed in “real-life.” For the default cases, no action is required on your part to make collisions happen.













Stencyl players