playMaker

Author Topic: Change object's textures under crosshair.  (Read 1518 times)

detomato

  • Playmaker Newbie
  • *
  • Posts: 36
Change object's textures under crosshair.
« on: November 01, 2013, 01:05:06 PM »
Hi, I was planning to do something like this:
But I have no idea where to start. Basically what I want is, how to cycle through a set of 5-6 textures of an object under the crosshair.
Would it possible and easier to do it with Playmaker?

Thanks in advance. Much appreciate!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Change object's textures under crosshair.
« Reply #1 on: November 04, 2013, 01:57:35 AM »
Hi,

-- when the user click, youperform a ray cast from the center of the screen, and you send a global event "CHANGE" or something to the gameobject being hit.

-- for each "live" gamobject, implement a FSM using this "CHANGE" global event as a global transition, and perform any color change or material change when you receive that global event.

 Does that make sense? Don't over think this, it's very simple actually.

bye,

 Jean