playMaker

Author Topic: Get Sprite[SOLVED]  (Read 611 times)

krmko

  • Beta Group
  • Hero Member
  • *
  • Posts: 987
    • View Profile
    • Fat Pug Studio
Get Sprite[SOLVED]
« on: August 30, 2018, 09:21:38 AM »
Hi,

could we get a get sprite action? Getting a texture and saving it as sprite is a bit cumbersome, and i'm not quite sure how to store sprites to do it myself, playmaker documentation is empty on that -_-

Of course, i'm trying to avoid that dreaded get property.

Is FsmSprite[] a thing yet?
« Last Edit: September 02, 2018, 10:27:49 PM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14126
  • Official Playmaker Support
    • View Profile
Re: Get Sprite
« Reply #1 on: August 31, 2018, 01:35:03 AM »
Hi,

 yes, the latest version of PlayMaker has now a Sprite variable available in your Fsm.

 where do you want to get the Sprite from?

 Bye,

 Jean

krmko

  • Beta Group
  • Hero Member
  • *
  • Posts: 987
    • View Profile
    • Fat Pug Studio
Re: Get Sprite
« Reply #2 on: August 31, 2018, 03:02:28 AM »
From the game objects spriterenderer, so i guess just a quick mod of set sprite would to the trick.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14126
  • Official Playmaker Support
    • View Profile
Re: Get Sprite
« Reply #3 on: August 31, 2018, 07:04:41 AM »
Hi,

 yes, I made it though, it's on the Ecosystem, called SpriteRendererGetSprite.

Bye,

 Jean

krmko

  • Beta Group
  • Hero Member
  • *
  • Posts: 987
    • View Profile
    • Fat Pug Studio
Re: Get Sprite
« Reply #4 on: August 31, 2018, 09:14:13 AM »
You're the best 8)