Doors and spawning

This forum is currently in read-only mode.
From the Asset Store
The package contains 105 sounds This sound library is perfect for voicing mechanical doors in your Sci-Fi game.
  • Hey guys.

    I've got a cap below where I'm trying to make two houses which you can enter. If you go into the one on the right and come back out, it puts you outside it, but if you go into the one on the left it goes back to the spawn, so I think I've done something wrong with the picking. Could anyone have a look? Is there a better way to do this?

    http://dl.dropbox.com/u/1378330/RPG_0002.cap

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You need to change the condition in event 5 of the event sheet "Basic_Character":

    + System: Is global variable 'Spawn_Root' Equal to Door_Spawn.Value('PV_Spawn_Root')[/code:21pbmfff]
    This looks correct, but it doesn't do any picking of the object "Door_Spawn",  so what happens is the global is only compared to the first instance of "Door_Spawn".
    
    The solution is to pretty much reverse the condition by comparing the "Door_Spawn" object's PV to the global:
    [code:21pbmfff]+ Door_Spawn: Value 'PV_Spawn_Root' Equal to global('Spawn_Root')
    [/code:21pbmfff]
    This way the correct object is picked.
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)