Move only on sprite

0 favourites
  • 2 posts
From the Asset Store
This is a code so you can see the same skin on all screens (peers). Each peer gets a skin, in addition to 4 directions t
  • So here's my dilemma, I'm wanting to make it so that my character can only move within the constraints of another sprite.

    This would mean that once the character intersects with this sprite, it will be confined, and unable to leave it, until I let it.

    If anyone could help, I'll have Dumbledore assign 10 points to your house.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Professional Game Studios Use "Helpers"

    Helpers can be anything you like but generally they are Semi Transparent color coded Box Sprites that have Behaviors attached to them such as "SOLID" etc

    If at any time you need to get rid of the Boundary Box Helper...Either destroy it,move it or remove its Behavior..Pretty easy..

    On the other hand you can also use Helpers to determine exact Positions of edges and other objects etc..

    So that for example in Prince of Persia...A Helper Box is placed on the edge of a cliff and if your Character collides with it or Overlaps the Helper Box..you can call animations or any other actions you like before your Character runs off the edge..! Pretty handy for just about any situation you can dream up...

    An Example from the Arcade Section shows how to do this...

    Example From Scirra Arcade

    And the CapX for it is here

    Patrolling-Example

    Happy Travels !

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)