Skip to content

Pause physics without pausing animations #657

Open
@gintsmurans

Description

@gintsmurans

It would be great to have an option to pause only physics so the animations still work. My node structure looks like this:
CCScene
-- CCPhysicsNode
-- CCSpriteBatchNode
-- Game elements

When a user hits pause button, CCPhysicsNode is paused and transparent pause layer slides down. It also pauses every child node CCPhysicsNode have recursively. It looks way better if animations like rotating coins are still rotating. To achieve that I am currently extending CCPhysicsNode. Do you think cocos2d needs this feature built-in?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions