Disable objects outside of view

Get help using Construct 2

Post » Tue Oct 29, 2013 9:11 am

Hi,

currently I'm writing a top down shooter you can see here in a demonstration:

Demo

(Use [X] to fire and [C] to use switches to open doors, arrow keys to move)

The room change is described here, if you wonder. ;)

What I would like to do now is, that I disable all objects outside of my current room/view and enable them when I enter the room. Vice versa I would like to disable them again, if I leave the room.

Anyone got a hint how to do this? Might be in the forum, but I just can't find the right keywords.

Thanks in advance,
OliverHamrath2013-10-29 09:12:38
B
29
S
5
G
3
Posts: 14
Reputation: 3,163

Post » Tue Oct 29, 2013 11:41 am

Is each room a different layout? You can use groups to disable grouped logic by room if you want. If it's all on one screen then just have everything disabled and then enable it when the proper thing is triggered.
B
47
S
17
G
81
Posts: 2,223
Reputation: 48,093

Post » Tue Oct 29, 2013 12:03 pm

@plinkie: No, it's one big layout. But I probably got it. There exist a "on screen" command, I didn't find before.
B
29
S
5
G
3
Posts: 14
Reputation: 3,163

Post » Tue Oct 29, 2013 12:07 pm

Object is visible on screen could work, good luck! Also watch out for future performance issues with everything on one screen/layout.
B
47
S
17
G
81
Posts: 2,223
Reputation: 48,093

Post » Tue Oct 29, 2013 12:17 pm

Thanks, I'll try to make each layout not too big and hope that it'll help. :)
B
29
S
5
G
3
Posts: 14
Reputation: 3,163


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider] and 42 guests