Few TGEA problems Mouse issue/playerspawn
by Brown College (#0133) · in Torque Game Engine Advanced · 11/04/2008 (8:53 pm) · 1 replies
I am working on a project for class and i created a new mission and started from scratch using the T3D demo as a base. I have the level done and the pickups in the level and some platforms to run on also in place. I moved the spawn sphere where i want the player to spawn and for the most part it works but sometimes it likes to spawn my player off in the distance using an observer method it seems. Anyone know how to fix this?
Next issue is sometimes my mouse doesnt work while in game but it works when in editor mode. What i mean by it not working is i can run with the standard keys but i cant use my mouse to look around. But if i press f11 i can now move the mouse to look around. Its really wierd it started happening after i tryed to load some images onto the gui and saving them out. Example: Made a clock image used the Gui Bitmap Ctrl to load the image in then made a gui text ctrl to link up with the timmer code. I save after doing this to the playgui then reload the game from scratch and my player spawns in the distance and i can only move around i cant use the mouse to look. The gui and the clock/timer work still i just cant use the mouse unless im in editor mode.
If anyone could help me with this issue i would be greatly thankful.
Next issue is sometimes my mouse doesnt work while in game but it works when in editor mode. What i mean by it not working is i can run with the standard keys but i cant use my mouse to look around. But if i press f11 i can now move the mouse to look around. Its really wierd it started happening after i tryed to load some images onto the gui and saving them out. Example: Made a clock image used the Gui Bitmap Ctrl to load the image in then made a gui text ctrl to link up with the timmer code. I save after doing this to the playgui then reload the game from scratch and my player spawns in the distance and i can only move around i cant use the mouse to look. The gui and the clock/timer work still i just cant use the mouse unless im in editor mode.
If anyone could help me with this issue i would be greatly thankful.
Torque Owner Brown College (#0133)
Issue#1 Fixed itself once #2 was fixed.
ISSUE#2 FIX
You have lost the important noCursor setting for the "PlayGui" screen. This is a common problem.
At the bottom of client/u/playgui.gui add PlayGui.noCursor="1"; after the OBJECT_WRITE_END:
//--- OBJECT WRITE END ---PlayGui.noCursor="1";
This is the easiest way to make sure this never happens again. (The gui editor tends to zero this flag each time you edit the gui.) Since the Gui Editor doesn't change anything oin the file it finds after the //--- OBJECT WRITE END ---
doing it this way makes sure you have mouse control of the look angle in the playing screen (PlayGui.gui)