playMaker

Author Topic: Click to start[SOLVED]  (Read 4111 times)

doge biscuit

  • Playmaker Newbie
  • *
  • Posts: 11
Click to start[SOLVED]
« on: June 21, 2015, 07:52:11 AM »
Hi all,

I am a newbie on Playmaker and just started to work on a small 3d game. The play functions have gone well, but I am stuck on making a start screen. There would be a message"Click to Start" showing up and I would like the players to click anywhere on the screen to start the game. Do I create FSM on the Canvas(click to start) or anything else? What options can be used to achieve the same "click to start" result?

Thank you!
« Last Edit: July 02, 2015, 11:52:47 AM by doge biscuit »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Click to start game
« Reply #1 on: June 21, 2015, 06:25:11 PM »
You can use "on mouse down" and does not have to be on the canvas.

You can check out some video tutorials here and here

and in the Tutorial section you can find some more tutorials :)
I hope these help you out :)

doge biscuit

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Click to start game
« Reply #2 on: June 22, 2015, 09:19:13 AM »
Hi djaydino,

Thanks for your response! if it does not have to be on the canvas, where could it be on? Can you please specify it? Thank you!

flora

  • Playmaker Newbie
  • *
  • Posts: 47
Re: Click to start game
« Reply #3 on: June 22, 2015, 09:58:11 AM »

hello  :)

Quote
if it does not have to be on the canvas, where could it be on? Can you please specify it?

just create an empty game object in the scene, and put the fsm on it

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Click to start game
« Reply #4 on: June 22, 2015, 10:11:59 AM »
i actually meant the Action "GetMouseButtonDown" sorry about that

"GetMouseButtonDown" can be used in any fsm you want (on any gameobject)

when you play the game and the state is active,
when the mouse button is clicked it will trigger that action wherever you click.

doge biscuit

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Click to start game
« Reply #5 on: June 23, 2015, 12:13:49 PM »
Thanks djaydino and flora. I've got the "GetMouseButtonDown" working in the game! It's really useful! I even use it on the other objects to waiting for the mouse click to start.

doge biscuit

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Click to start[SOLVED]
« Reply #6 on: June 24, 2015, 03:58:01 PM »
One more question related to"Click to Start" text. The text does not disappear when the game has started. How do I make the text invisible when the game starts please?

doge biscuit

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Click to start[SOLVED]
« Reply #7 on: June 24, 2015, 04:19:39 PM »
i have tried"set visibility" on the canvas and text and none of them worked. I might have set them incorrectly or are there any other ways to achieve the same result? Thank you!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Click to start
« Reply #8 on: June 25, 2015, 01:58:01 AM »
hi,
you can use a set text action and leave text blank

doge biscuit

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Click to start[SOLVED]
« Reply #9 on: July 02, 2015, 11:51:14 AM »
Thanks Dino. I used "set properties" in the "clicked" state on the canvas and it works.