playMaker

Author Topic: Draw texture on the owner gameobject  (Read 1997 times)

Sly

  • Full Member
  • ***
  • Posts: 123
Draw texture on the owner gameobject
« on: June 03, 2013, 04:44:49 PM »
I don't understand how to draw a texture on the owner.

For this I mean when I trigger my object I want to draw an arrow over it (and not following the screen.) How I can do that?

Can someone help me please?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Draw texture on the owner gameobject
« Reply #1 on: June 03, 2013, 05:07:14 PM »
Like a decal arrow or are you changing the main texture to one with an arrow?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Draw texture on the owner gameobject
« Reply #2 on: June 03, 2013, 07:58:48 PM »
Maybe you're looking for the World to Screen Point action:
https://hutonggames.fogbugz.com/default.asp?W571

This will convert the world position of a GameObject into a screen position that you can use in GUI actions like Draw Texture.

You can use the Get Owner action to get the Game Object that owns the FSM.