playMaker

Author Topic: Off screen enemy indicator  (Read 2145 times)

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Off screen enemy indicator
« on: July 28, 2017, 11:54:10 PM »
Hi, anyone got any idea on how to make a off-screen ugui indicator of a enemy that isn't visible to the player? Or is there any free playmaker demo on creating this function?

thanks
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Off screen enemy indicator
« Reply #1 on: July 30, 2017, 06:49:15 AM »
Hi.
to know if an object is off screen you can use the action "Game Object Is Visible"

If false you can get the position but i am not sure how to do the arrow,

There is an action on the Ecosystem that  rotates to point to an object called 'Smooth Point At Y'
Maybe you can use that somehow.

I also saw these 2 assets on the asset store that are cheap and easy to use.

Off Screen Indicator and Off Screen Target Indicator

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Re: Off screen enemy indicator
« Reply #2 on: August 01, 2017, 01:11:07 AM »
hey thanks for the pointers, I will going to try doing it myself first :)
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Off screen enemy indicator
« Reply #3 on: August 01, 2017, 07:32:29 AM »
Hi,
Let me know if you got it to work and if you bumb into problems.