How do I limit a sprite object to have mve only on the edges

0 favourites
  • 3 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • I have a sprite object which I want to move only on the layout edges on solid objects.

    Have behaviors added to my sprite object: Solid, bound to layout, 8 direction.

    But still the sprite moves on the complete layout where as it should move only on the solid surface.

    Is it that we will have some options in custom movement ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think you're misunderstanding what the solid behavior does. You don't need it on your sprite object to begin with--8 direction already interacts with solid objects. So you OTHER objects (think of boundaries) should have the solid behavior. These are what you use to define where the player can or can't move.

  • Hi,

    It moves as expected. But I want to limit the movement only to the edges.

    It should not be able to move on the complete canvas.

    I want to limit the movement of my sprite to only edges where I have solid behavior. And I move the sprite with keyboard control up/down/left/right.

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