play is not the same as play

In an earlier post about the 3DPlatformTutorial I tried to point out that the little guy was just falling over the edge and I had no control over him. I didn’t get any help on that one but I have discovered where/how to associate keys with control etc. In trying to solve that I decided to build a standalone version of the game and “play” that. well it’s much better behaved than the “play” button in the GUI.

So how does the play emulation compare with the actual standalone game build? There are differences. What differences should we expect?

Other than a stand-alone being faster, there shouldn’t be any differences. If your movement is framerate-dependent, it will behave differently in a stand-alone because of the faster framerate.

–Eric

Sorry I should have indicated difference. In the standalone on play, the guy stands there on platform in front of jail until moved. In the simulated one, he immediately starts to fall through the platform, droppping to about -68 or so, but still in cloud. I can move him about tere, but the jump/jet is only a jump, not a prelude to elevated movement so there’s no chance of getting him back to the plaform.

BTW, how do you kill/edit the game? I had to shutdown the laptop!

As Eric says, framerate is the most likely difference between the editor and standalone. Are you using the Update method for physics (rather than FixedUpdate) or doing any movement in the update method that isn’t scaled with Time.deltaTime?

By the way, Ctrl (or Command) + Q quits the game like a normal app, even when it’s fullscreen.

Perhaps the collider was wrongly placed. I fiddled with that and that problem now solved. Oh also changed default movement to idle instead of walking blindly off.