Behaviours won't enable?

0 favourites
  • 4 posts
  • So I have a game where I have two layouts, one is the menus and another is where the levels are. I have an event that when you tap/click the level button, it sends you to the other layout, moves the player to the proper position and enables platform and scroll to. All of the other actions work, but for some reason the platform and scroll to won't enable. It just puts the screen at the top-left corner like usual. Does anyone know why this is happening? I've tried changing a lot of things but nothings working. I checked with debug and it literally says that the behaviors aren't enabled. Why won't it go on?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hard to tell without the events but I'm wondering why not just have them enabled on the player already, why do you need to set them enabled?

  • Because otherwise you would be able to move the player on the title screen.

  • Guessing here since there's not a lot to work with, but are you creating the player on the game layout via events, or is it positioned there already? If it's there already then it's possible your player has the global property and you actually have two instances.

    Otherwise, I recommend you create the player objects at runtime, using two templates: one for the title screen with the behaviours disabled, and one for the game with them enabled.

    Also, make sure unbounded scrolling is enabled in your game layout.

    It could be many things. More info will help if you don't come right.

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