Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - serenefox

Pages: 1 2 [3] 4 5 ... 8
Playmaker Help / Re: Photon Get offline mode status
« on: March 24, 2017, 08:13:16 AM »
Oh ok! Thanks for clearing that up.   :)

Playmaker Help / Re: Photon Get offline mode status
« on: March 24, 2017, 05:13:37 AM »
Hey Jean,

Maybe I am doing it wrong. When I am testing the action I just set the offline/online modes in the editor photon settings before running the game, do I have to set it true/false in code or with the action first for it to register?

Playmaker Help / Re: Photon Get offline mode status
« on: March 21, 2017, 01:56:51 AM »
Hi Jean,

I did a test to see if I was checking too soon, but the results were the same. If you could let me know when you test it and what the results are on your end that would be awesome thanks.

Playmaker Help / Photon Get offline mode status [SOLVED]
« on: March 20, 2017, 10:08:07 AM »

I am trying to create an action to "get" if offline mode is active with photon. I duplicated the "set" action and modified it. This is what is have so far:

Code: [Select]
using UnityEngine;

namespace HutongGames.PlayMaker.Actions
[Tooltip("Gets if the PhotonNetwork is offline or not. Offline mode can be set to re-use your multiplayer code in singleplayer game modes." +
"\n When this is on PhotonNetwork will not create any connections and there is near to " +
"no overhead. Mostly usefull for reusing RPC's and PhotonNetwork.Instantiate")]
public class PhotonNetworkGetOfflineMode : FsmStateAction
private bool offlineMode;

[Tooltip("Event to send if the Bool variable is True.")]
public FsmEvent isTrue;

        [Tooltip("Event to send if the Bool variable is False.")]
public FsmEvent isFalse;

public override void Reset()
isTrue = null;
isFalse = null;

public override void OnEnter()
offlineMode = PhotonNetwork.offlineMode;
Fsm.Event(offlineMode ? isTrue : isFalse);


It always returns either false or true I can't remember but it just doesn't work anyway. Is there an action or way I can get the status of offline mode. Is this possible? Or is the code above wrong?

Thanks for your reply and support jean! I got it to sync the random/procedurally generated dungeon efficiently! I wouldn't have been able to figure it out properly without what you explained.

Hi everybody!

So I recently started making my 6th game an I figured it was time I moved into some multiplayer since I purchased the photon PUN+ awhile back and never used it.

So here is my question I am trying to generate a level with a plugin called Dungen. The problem I am having is how to get the spawned pieces to sync across the server.

I thought at first to network instantiate them each with a photon view component but upon doing more research I learned that the method might not be good for performance.

Then I thought about RPCs but when I implemented it the game hit a spike like I have never seen before in the profiler. Can anyone give me some heads up on the best way to do this.

Basically the dungeon gets spawned under a root gameObject as individual prefabs.

Any info would be appreciated.


Playmaker Help / Re: PlaymakerPhotonProxy ERROR[SOLVED]
« on: March 16, 2017, 11:03:05 PM »
Hi Jean,

Thanks for replying, I am sending you an email to your hutong games email with the  fresh test build now, let me know if you get it. I have also included exact repro steps in the email.


Playmaker Help / Re: PlaymakerPhotonProxy ERROR[SOLVED]
« on: March 16, 2017, 10:49:04 AM »

Hi I am now having this error as well. I tried it with a new/fresh project with the same instructions you suggested. I have attached a screenshot of the error with the demo worker scene. It has stopped me from proceeding with my project. Any ideas?

Playmaker Help / Spherecast action not returning hit
« on: February 17, 2017, 02:09:30 AM »

So I figured out that the spherecast was not working because it started from inside my player(ball) and apparently that does not work since it is starting inside of a collider even if the layermask says not to look at it.

That leaves me with another problem. I figured I could spherecast from above my player in world space to fix it but the action is either from the gameobject or from a position. Is there anyway to make the position a world space offset from my player? (since my player is always rotating)

Original Post:


I am using the spherecast action from the ecosystem, but I can't get it to work for some reason. I am trying to cast down from my player(ball) to the ground to check and see if the player is grounded before I jump.

Normally I would use a raycast but if the player is on a slope the raycast sometimes misses even though the player is grounded.

I have it "Return" the the preious state if it doesn't hit anything else send a jump event to continue on. Yet it rarely ever returns a hit. I have attached my settings on the action.

I am thinking maybe I'm not using it right but from the documentation on unity I believe I am.

Any info on how to use it?


User Showcase / Re: Spiraloid (100% PlayMaker!)
« on: February 14, 2017, 03:57:15 PM »
Nice! Congratulations on the feature, totally jealous haha.

Playmaker Help / Re: Help slowing "Add Torque" based on slope?
« on: February 14, 2017, 02:37:54 AM »
Hi Jean,

I don't want a constant velocity. Let say the ball starts to go uphill, I want to start to slow it down based on the slope of the hill to a certain point. Basically what a character controller does but with a rigidbody and collider instead. I think what you told me in the latter half of your reply is what I was looking for though. I will have time to test and see for sure tomorrow.


Playmaker Help / Help slowing "Add Torque" based on slope?
« on: February 13, 2017, 06:48:37 PM »

I am building a ball platformer and I am trying to find a way to detect when my sphere is going up or down a slope. I am using "add torque" to move my sphere character and its great but I can basically go up almost vertical slopes with it, which I don't want. I want to slow down the sphere if it is going uphill and speed it up going downhill. I am assuming I am going to have to use raycasting but not sure.

My sphere has a rigidbody and a collider instead of a character controller if that's helpful info.

TL;DR I need a way to detect a slope's value so I can change the speed of my add torque.

Thanks for any info!

Playmaker Help / Snowboarding character controller in Playmaker?
« on: February 12, 2017, 05:06:58 AM »

I am wondering if anyone would have insight as to how to accomplish this. I want to make a snowboarding game but I need to figure out the logic for a snowboarding controller/system.

I want to be able to be able to have a character on a snowboard and to be able to basically stick to the ground unless input for a jump is pressed or if going fairly fast over a bump maybe the character comes off the ground a bit?

I saw the game "Shred it!" on iOS looks kind of like what I am aiming for as they have slight little bumps in their ground mesh just enough for the character to move up/down over them but not come off the ground. Also how would you make a character go down a slope at a steady pace?

Thanks for any insight!

Major update for Don't Pop! Dungeon on both iOS and Android! Added a lot of background/foreground decorations(some interactive), camera shake upon certain events, and made the game run a lot better performance wise. Please check it out and let us know what you think! We are also thinking about adding a story mode.

Work In Progress... / Re: Don't Pop! Dungeon W.I.P. And Alpha on Android
« on: September 20, 2016, 06:45:20 PM »
This thread has been started in user showcase because it is now released!

Pages: 1 2 [3] 4 5 ... 8