Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: phannDOTde on January 08, 2014, 08:49:29 PM

Title: How to figure out if Scene runs in a Webplayer?[SOLVED]
Post by: phannDOTde on January 08, 2014, 08:49:29 PM
Is there any simple Way to figure out if a Scene/Project is running in a Webplayer, Standalone or any other Device? Something like getting "System" Data?

Would appreciate any hints on this. Thanks in advanced.

cheers
Peter

Title: Re: How to figure out if Scene runs in a Webplayer?
Post by: TIGGYsmalls on January 09, 2014, 05:16:50 AM
I'm pretty sure you would just have to build separate projects for web, standalone or mobile and then put separate FSMs in for whatever you want to do.
Title: Re: How to figure out if Scene runs in a Webplayer?
Post by: phannDOTde on January 09, 2014, 07:06:12 AM
I just want to clamp the aviable Levels for the Webversion and not make seperate builds on my Pre-Alpha if it isnt neccesary.
Title: Re: How to figure out if Scene runs in a Webplayer?
Post by: Lane on January 09, 2014, 07:12:04 AM
You'll have to make separate builds.

At that point you can just remove the Scenes you don't want from the build menu.
Title: Re: How to figure out if Scene runs in a Webplayer?
Post by: phannDOTde on January 09, 2014, 04:08:42 PM
Thanks for your answers.

cheers
Peter
Title: Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
Post by: jeanfabre on January 10, 2014, 06:13:48 AM
Hi,

 If you only want to constraints the kind of levels a user can do ( but not constraint by unsupported features for a specific level), then you can build with the all the levels and simply list only the ones available for that platform.

A Custom action can be created to send events based on the platform, can you get back to me next week on this and I'll do one.

bye,

 Jean
Title: Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
Post by: phannDOTde on January 14, 2014, 02:15:27 AM
Hi Jean,

just a reminder - if you find time for this would be awsome :-)

have a great week
Peter
Title: Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
Post by: jeanfabre on January 14, 2014, 07:19:36 AM
Hi,

 Please bump me again next week :) Thanks for your patience, I am so running behind!!

Bye,

 Jean
Title: Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
Post by: phannDOTde on January 20, 2014, 07:21:02 AM
Hey Jean,

hope youre had a nice weekend - here comes another bump on this Topic; please look in to it, would be very helpfull.

greets
peter
Title: Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
Post by: jeanfabre on January 22, 2014, 12:00:07 AM
Hi,

 Here we go, it will do a lot more than just checking if you are running on a webplayer, but essentially, this action will let you send events based on the platform and various platform dependant flags.

http://hutonggames.com/playmakerforum/index.php?topic=6105.0

bye,

 Jean
Title: Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
Post by: phannDOTde on January 22, 2014, 09:18:15 AM
Great Job - thank you so much :-)

greets
Peter
Title: Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
Post by: phannDOTde on February 06, 2014, 12:11:39 AM
Hey Jean,

I finaly found time toimplement this and it works mostly ok but when I add multiple Plattforms to test it seems that "Webplayer" isnt triggered - did a workaroud where I jump out of the state if it's standalone/editor and if not continue to the webplayer stuff - that work but I just would like to inform you that there might be an issue with checking "Webplayer" in this Action.

cheers
Peter
Title: Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
Post by: jeanfabre on February 07, 2014, 07:46:35 AM
Hi,

 Indeed, I forgot to add this case... d'oh :) I have update the original post, please re download.

 Thanks for spotting this!

bye,

 Jean
Title: Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
Post by: phannDOTde on February 08, 2014, 07:33:14 AM
Hey Jean
is it me or did you forget to put up the download link?

cante find it here http://hutonggames.com/playmakerforum/index.php?topic=6105.0

cheers
Peter
Title: Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
Post by: jeanfabre on February 10, 2014, 03:12:01 AM
Hi,

 I have issues with attachments... sorry... can't seems to work ( nor searching the forum)

bye,

 Jean