playMaker

Author Topic: How to change sprite (2D toolkit + Playmaker) - Score System[SOLVED]  (Read 8171 times)

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Hi everybody!!!
Maybe a noob question, but anyone know hot to chage a sprite of a spritecolletion every (event happen)?
Like a score system, i like to chage image number 1 to number 2 and 3(...).
Can help?
« Last Edit: March 14, 2014, 06:44:29 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to change sprite (2D toolkit + Playmaker) - Score System
« Reply #1 on: February 25, 2014, 03:02:23 AM »
Hi,

Actually, I would suggest you have all your image in your sprite collection and then sawp that image on the sprite itself as opposed as in the collection itself.

bye,

 Jean

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: How to change sprite (2D toolkit + Playmaker) - Score System
« Reply #2 on: February 25, 2014, 11:58:09 AM »
Hi Jean!
I think not express well...i mean change the image sprite of just one spriteColletion.
I want to change the score when player hit someting.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to change sprite (2D toolkit + Playmaker) - Score System
« Reply #3 on: February 26, 2014, 01:25:31 PM »
Hi,

 then you would use a proper text based sprite with a atlased font for this isn't it? what is your score gameobject made of?

bye,

 Jean

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: How to change sprite (2D toolkit + Playmaker) - Score System
« Reply #4 on: March 01, 2014, 03:41:23 PM »
Hi
I use a 2D Toolkit font. Can you make a example for me...i try try but, i don't not how to make this score system.
 :'(

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: How to change sprite (2D toolkit + Playmaker) - Score System
« Reply #5 on: March 03, 2014, 07:57:32 PM »
Nothing?  :o
I try with this action: "tk 2d Text Mesh set Text".
Is correct this action to make a score system based in 2D toolkit?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to change sprite (2D toolkit + Playmaker) - Score System
« Reply #6 on: March 04, 2014, 06:23:25 AM »
Hi,

 yesm that's the one to use to set the text on 2t2d, is it not working?

bye,

 Jean

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: How to change sprite (2D toolkit + Playmaker) - Score System
« Reply #7 on: March 04, 2014, 09:00:43 PM »
I don't not if is working...because can't test.
Here is my FSM setup.

Can you help?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to change sprite (2D toolkit + Playmaker) - Score System
« Reply #8 on: March 05, 2014, 02:53:24 AM »
Hi,

 I am confused. Why can't you test this?

bye,

 Jean

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: How to change sprite (2D toolkit + Playmaker) - Score System
« Reply #9 on: March 05, 2014, 12:16:36 PM »
1. Is its the best way to make score?
2. I can't test, because a have a problem when try to drag and drop the 2score game object" into the tk 2d textmesh. (see the image, have error).

thanks!

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: How to change sprite (2D toolkit + Playmaker) - Score System
« Reply #10 on: March 05, 2014, 08:27:11 PM »
Here is the error (image).
 :-[

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to change sprite (2D toolkit + Playmaker) - Score System
« Reply #11 on: March 06, 2014, 07:26:15 AM »
Hi,

 Drag Contador on the gameobject field. Don't drag the component itself. else use the action "get Owner" store this is a GamObject variable that you use in this action as opposed to try to drag and drop.

bye,
 
Jean

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: How to change sprite (2D toolkit + Playmaker) - Score System
« Reply #12 on: March 06, 2014, 06:29:34 PM »
sorry...but I do not understand.
1. Score is the textMesh game object (2d toolkit).
2. Contador is FSM where i try to make that score update number every time.
3. When drag and drop Score into Tk 2d Text Mesh set Text action...show the pop-up window and let me choose  (Get property, set property, etc.)

I want to update the text Mesh (Score). How to do this? Sorry my ignorance on this, and thanks to help me.

how do I do?

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: How to change sprite (2D toolkit + Playmaker) - Score System
« Reply #13 on: March 09, 2014, 11:20:16 AM »
nothing????
 ;D

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: How to change sprite (2D toolkit + Playmaker) - Score System
« Reply #14 on: March 10, 2014, 09:58:53 PM »
Is any place with toturial of how to make a score sytem? 2d toolkit or gui text (native of unity) i don't care....i just to make happen this :(