Actor mode

 

Actor mode
Directory: selected actor > physics > Advanced.
 

Introduction:
Most of the actor demands are in the collision section. By reducing the physics mode, the demand will be significantly reduced. However, disabled some of its functions for selected actors. Stencyl uses Box2D as physics. Stencyl-based game developers can compromise between functionality and efficiency for computer to run each actor.

Physics mode. 
All modes allow mouse interaction. Under all physics modes, actors can be killed.

To prevent a solid actor from passing through another solid one, Both actors needs to have default actor mode. Other they will overlap one another. 

Abilities
Minimal
Simple
Normal
anchor to screen
no
yes
yes
regions can sense?
no
no
yes
Solid actor interaction with other solid actors.
Lets other solid actors pass through even if its solid
Lets other solid actors pass through even if its solid
Only other actors that is not solid will pass through. 

Code to change physics mode: in selected actors. 

actor.physicsMode = MINIMAL_PHYSICS
actor.physicsMode = NORMAL_PHYSICS
actor.physicsMode = SIMPLE_PHYSICS

No comments:

Post a Comment