playMaker

Author Topic: How to figure out if Scene runs in a Webplayer?[SOLVED]  (Read 4594 times)

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
How to figure out if Scene runs in a Webplayer?[SOLVED]
« 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

« Last Edit: January 10, 2014, 06:11:49 AM by jeanfabre »

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
Re: How to figure out if Scene runs in a Webplayer?
« Reply #1 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.

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: How to figure out if Scene runs in a Webplayer?
« Reply #2 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.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How to figure out if Scene runs in a Webplayer?
« Reply #3 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: How to figure out if Scene runs in a Webplayer?
« Reply #4 on: January 09, 2014, 04:08:42 PM »
Thanks for your answers.

cheers
Peter

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
« Reply #5 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

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
« Reply #6 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
« Reply #7 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

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
« Reply #8 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
« Reply #9 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

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
« Reply #10 on: January 22, 2014, 09:18:15 AM »
Great Job - thank you so much :-)

greets
Peter

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
« Reply #11 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
« Reply #12 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

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
« Reply #13 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to figure out if Scene runs in a Webplayer?[SOLVED]
« Reply #14 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