How do I have doors make rooms visible?

Get help using Construct 2

Post » Tue Jul 19, 2016 5:06 am

I want to make a little space game a little like FTL but you can enter/exit your ship. I would like it where when you exit a ship the interior is replaced with the exterior of the ship, and when you enter the interior becomes visible again. Is this possible and how could i achieve this?
B
4
S
1
Posts: 1
Reputation: 302

Post » Tue Jul 19, 2016 7:01 am

Layer two images of your ship sprite on top of each other. One for the interior, one for the exterior on top.

While Player is overlapping ship, set exterior visibility to 0.
Mistakes were made.
B
49
S
24
G
107
Posts: 1,579
Reputation: 60,299

Post » Sun Jul 31, 2016 8:49 am

Yes oosyrag is correct

but just to clarify ..To do that method above you would need to make sure that you select the Top exterior sprite when you check for overlapping


if you want a fancy smooth Fade Transition...

-Add 2 Fade Behaviors to your Ship Exterior .Sprite

-Rename one as FADE_IN
-set 'Active at start' to NO
-set up your Fade in time to some value you like.
-Set Fade out time to 0
-Set Destroy to NO

Rename second FADE Behavior as FADE_OUT
--set 'Active at start' to NO
-set up your Fade in time to 0
-Set Fade out time to some value you like.
-Set Destroy to NO

Then make new Events that call each Fade Behavior according to which one you want..either FADE_IN or FADE_OUT

for example...

Player-->is Overlapping Exterior Ship.Sprite
Trigger once while true
--> ExteriorShip.Sprite -> FADE_OUT->Start Fade


and another event

Player-->is NOT Overlapping Exterior Ship.Sprite (invert Condition)
Trigger once while true
--> ExteriorShip.Sprite -> FADE_IN->Start Fade

This should make a smooth Fade in/out Transition which is Time variable
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
35
S
13
G
8
Posts: 318
Reputation: 7,685


Return to How do I....?

Who is online

Users browsing this forum: jaytrott86 and 8 guests