CyanGaming's Forum Posts

  • 3 posts
  • If your spawning enemies or whatever around your player you could try something like this. Assign a new instance variable to your enemy called spawnAngle.

    Spawn a new enemy ontop of your player

    Set the spawnAngle variable of the enemy to: atan(random(0,1)/random(0,1))

    Then set the position of the enemy to:

    X: cos(self.spawnAngle)*(round(random(0,1))*2-1)*random(300,700)

    Y: sin(self.spawnAngle)*(round(random(0,1))*2-1)*random(300,700)

    Where 300 is the minimum distance and 700 is the maximum distance away from the player.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Something like this?

    https://howtoconstructdemos.com/x-ray-machine-effect-with-blend-mode-capx/

    I saw a solution the same as this using force own texture or something like that, but I can't get it to work with a layer that has a different parallax, since the duplicate player object has to be on the same layer as the parallax object, but that obviously leads to problems.

  • If you have a tree for example, and a player walks under it so you can no longer see the player, is there a way to make the part of the player which is obscured by the tree appear above the tree as a coloured solid silhouette.

  • 3 posts