Welcome,
Guest
. Please
login
or
register
.
January 22, 2025, 11:59:37 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
TNet 3 Support
»
Switching between single player and multiplayer scenes?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Switching between single player and multiplayer scenes? (Read 2068 times)
Follett
Guest
Switching between single player and multiplayer scenes?
«
on:
May 09, 2013, 10:29:18 AM »
So I am prototyping an idea I had and decided to once again use Tnet as the networking solution. Currently I have 5 scenes (3 scenes from the Tnet basic game tutorial Start, level and disconnect. Furthermore 2 custom ones call map and battle).
This would be my ideal setup map and battle would be single player scenes which do their own thing. while in the map scene with a press of a button (currently 'p') the scene changes to the Start scene which loads the multiplayer server and all (This all works well). Finally when the player is done with the multiplayer part with the press of a button (Now it is 'i') TNManager.Disconnect(); is done and loads the Disconnect scene.
From the disconnect scene it will automatically load Map. This all works great but the problem is from the map screen I cannot reconnect to the Start scene and rejoin the level scene. The player doesn't need to reload into the same position on the scene I just want them to rejoin in the spawn area. Is there an easy fix for this?
Sorry if this is long winded and poorly explained.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Switching between single player and multiplayer scenes?
«
Reply #1 on:
May 09, 2013, 11:46:42 PM »
I'm not sure I understand what you're doing correctly... but why do you disconnect? Why not just leave the channel, but remain connected? Then when you want to actually go back to the game, it's a simple matter of re-joining the proper channel.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
TNet 3 Support
»
Switching between single player and multiplayer scenes?