playMaker

Author Topic: Get Sprite Object to be Loaded to  (Read 204 times)

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 60
    • View Profile
Get Sprite Object to be Loaded to
« on: November 26, 2017, 09:24:56 PM »
Hi,

i'm looking a way to load a sprite by name,

let's say i have a string contain "sprite name", how i can load and save a sprite into FSM ?

The Sprite to be loaded to this FSM, i need to do it dynamically to save to "card_sprite" , example attached on below :



« Last Edit: November 26, 2017, 10:06:13 PM by rainexplorer »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13137
  • Official Playmaker Support
    • View Profile
Re: Get Sprite Object to be Loaded to
« Reply #1 on: December 10, 2017, 11:18:07 PM »
Hi,

 for this, you need to put your sprite in a Resources folder and use ResourceLoad from the Ecosystem

 Bye,

 Jean