playMaker

Author Topic: [SOLVED]Noob with a simple question about advancing days  (Read 1265 times)

netdjay

  • Playmaker Newbie
  • *
  • Posts: 4
[SOLVED]Noob with a simple question about advancing days
« on: July 17, 2019, 09:09:37 PM »
Hi.
I'm new at Playmaker and I've looked at as many videos and the manual but I can't find what I'm looking for. I hope someone here can help. I'm trying to use a mouse press to advance an  image of each day of the week. Sunday through Saturday then back to Sunday to start the cycle over. So when you press the button it advances to Monday, another press and it advances to Tuesday...
Can someone please point me in the right direction?
Thanks.
« Last Edit: July 21, 2019, 08:46:15 PM by djaydino »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Noob with a simple question about advancing days
« Reply #1 on: July 17, 2019, 09:42:57 PM »
Hi.

for mouse press you can use "Get Mouse Button Down"

Then You can use an array to loop thru the week, i made a sample but it uses text instead.
Instead of text you can Set images to an object.


netdjay

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Noob with a simple question about advancing days
« Reply #2 on: July 20, 2019, 04:42:35 PM »
Thanks! That was extremely helpful!

netdjay

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Noob with a simple question about advancing days
« Reply #3 on: July 20, 2019, 09:51:58 PM »
I have one other simple question. I've been trying to change the 'mouse down' to a UI button. Even though I've followed the tutorials, it doesn't seem to be as simple as replacing the state with the button. Can you please tell me what I'm missing? Thanks.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Noob with a simple question about advancing days
« Reply #4 on: July 21, 2019, 02:34:59 PM »
Hi.
The transition should not be global in this setup, you can also use "Ui Button On Click Event" instead of the 'On Click' event on the button component.

netdjay

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Noob with a simple question about advancing days
« Reply #5 on: July 21, 2019, 08:34:51 PM »
Yep! Got it. Thanks!