Game freezing when going throught portal?

This forum is currently in read-only mode.
0 favourites
From the Asset Store
five golem elements Sprites Sheet.Best for enemy or villain game characters.
  • Hi, I'm having a problem whenever I touch one of my portals the game freezes and I force quit it.

    http://www.mediafire.com/?wdodogbts5m

  • Why? Becouse you did an infinite loop, you have to disable changing position after touching portal with event like "Is overlaping & Touched_Orange=1 (some variable)"

    Becouse it goes like this after touching one portal.

    Player Touched Orange = Teleport to Blue

    Player Touched Blue = Teleport to Orange

    Infinite loop!

    Edit: On second though it's not the Infinite loop thats locks the game (yet its still buggy) but the fact that you want to teleport the player into Block.

  • So how would I fix my player teleporting into block.

  • By Creating Image point thats out of portal so there is no way of teleporting into Block.

    <img src="http://img259.imageshack.us/img259/4320/portalsck6.png">

    Orange=Portal and DarkBlue=Player

    Btw this ex. is made for 270 angle.

  • Thanks. But could you explain to not get an infinite loops in more detail.

  • Well now without touching the portals every time you teleport there should be no problem with that.

  • I just got another question kinda related. you can fire 2 portals somehow of the same type and I don't know whats causing it?

    Also is there any way for the portals to go parallel with block?

  • 1.)You have "Player Private Value 'Orange' greater than 1" it should be greater than 0

    2.) "go parallel with block"???

  • So it would look like this when you fired the portal

    <img src="http://content.screencast.com/media/e8e020b4-f551-4029-afe8-a03d0fc117de_6aca8dc8-d882-4bfa-8283-4b9a682e9b2a_static_0_0_2008-04-11_2330.png">

    instead of this

    <img src="http://content.screencast.com/media/57f6f77a-ea80-4a45-b345-8a038411f86e_6aca8dc8-d882-4bfa-8283-4b9a682e9b2a_static_0_0_2008-04-11_2331.png">

  • Simple, Properties -> Angle -> Rotations = N angles, and below change Rotation Count to 4.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sorry I don't really understand what I have to do?

  • Change properties of Portals like i said.

  • I just found it out I was looking in the wrong place. is there any way for it to be flat with another surface if its at an angle?

  • is there any way for it to be flat with another surface if its at an angle?

    ...wat?

  • Like this

    <img src="http://content.screencast.com/media/9e640fad-5a10-4cf7-b4d5-16151d23645e_6aca8dc8-d882-4bfa-8283-4b9a682e9b2a_static_0_0_2008-04-12_0006.png">

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