How do I prevent collision checks in a menu screen?.

0 favourites
  • 4 posts
From the Asset Store
ready made menu you can download this one or just follow my tutorial to make it yourself
  • Hey all

    I am having trouble trying to figure out why collision checks happen even though all the objects in that layout(main menu) have collisions disabled.

    In my menu i've got the buttons and text to move in and out of the screen as needed when touched. In the Debugger it shows that the collision checks happen when the objects are moving and then back to zero checks when they have reached their destination position.

    I have double checked and all the objects have collisions disabled and i've even put them in a family and disabled collisions on startup. But it's the same.

    I noticed that when i put a new object with frames in them ,the collision checks had increased in count, could it be anything to do with objects with animation frames?.

  • I think you are only disabling collision on all objects on startup. But for new objects, when created, do not have collision disabled. You have to disable them via "on create" event.

  • Oh i didn't know that, but i have my objects on the layout from the start. I don't have a create event for it and i also don't destroy any of them. But i did realize there was no point in having them all at the start but there comes a time in the layout where almost all the objects are on screen together and the collision checks happen.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Actually, "on created" event will run for all objects on startup as well. Because when the layout is loaded, these objects are created on the layout immediately.

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