playMaker

Author Topic: Swap Single Sprite  (Read 17203 times)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Swap Single Sprite[SOLVED]
« Reply #15 on: December 03, 2014, 11:38:37 AM »
Hi,

i pm-ed Alex to also get access to the beta version.

what junk are you getting?
I want to test this.
as i'm trying to reproduce this

Greetings,

Dino
« Last Edit: July 16, 2018, 04:27:50 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Swap Single Sprite
« Reply #16 on: December 08, 2014, 03:43:49 AM »
Hi,

It's ok actually. It's within the beta that we found an issue when using an FsmObject, selecting a content for a FsmObject in the Unity Asset Browser was returning everything, but now that we found the problem, it wasn't related to your action per say.

 Bye,

 Jean

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Swap Single Sprite
« Reply #17 on: December 09, 2014, 04:17:57 AM »
Ok, i will update this on github then :)

dharry

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Swap Single Sprite
« Reply #18 on: July 09, 2015, 10:04:36 PM »
Hi Guys,

Not sure if you can help, i'm still learning Unity and Playmaker but I have a PSM that is meant to swap a sprite when a user enteres a trigger, I can see the FSM fire off and the Swap Sprite action fire but my sprite doesn't change...

Is there anything special I need to do to get this to work?

I'm making a pacman type clone so the trigger is when the player enters big dot and it's supposed to swap the enemy sprite.

Cheers
Dean

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Swap Single Sprite
« Reply #19 on: July 10, 2015, 05:35:47 AM »
Hi,
what version is your playmaker?

be sure to check that your image is a sprite and not texture2d.

dharry

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Swap Single Sprite
« Reply #20 on: July 10, 2015, 05:42:01 AM »
Hi Dino,

Version 1.7.8.3 (latest version) and the 2 sprites are Sprite (2D and UI). The sprites are just from an image I created in Photoshop and imported so I think they are ok... I'm still learning a lot :)

Regards,
Dean

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Swap Single Sprite
« Reply #21 on: July 10, 2015, 10:51:54 AM »
hmm, strange...

can you make some picture or video with the actions?

dharry

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Swap Single Sprite
« Reply #22 on: July 10, 2015, 08:08:22 PM »
Hi Dino,

Sure thing... here's how it looks...

This is the first time iv'e worked with sprites so maybe I have done something wrong with them?

Dean


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Swap Single Sprite
« Reply #23 on: July 11, 2015, 04:59:33 AM »
is there also a swap sprite in the 1st state (entered trigger)
if so you need to use on trigger exit in the 2nd state.

dharry

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Swap Single Sprite
« Reply #24 on: July 11, 2015, 05:16:08 AM »
Hi Dino,

No, the first state is simply an Trigger 2D Event to capture the player trigger.

Dean

dharry

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Swap Single Sprite
« Reply #25 on: July 11, 2015, 05:31:45 AM »
Hi Dino,

I think I almost have the problem, it's not the swap sprites script, I have an animation running on the original sprites that is still running after the swap. If I turn the Animator off they swap out fine...

Thanks for your help

Dean

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Swap Single Sprite
« Reply #26 on: July 16, 2018, 04:16:37 AM »
Edit: Oh, the action's fixed in 2018, nevermind :D
« Last Edit: July 16, 2018, 04:19:25 AM by krmko »
Available for Playmaker work