Einar
-
Posts
10 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Downloads
Posts posted by Einar
-
-
On 7/16/2024 at 7:02 AM, khotan said:
I think it is incomplete your code to make a running smooth, you need to see the code with a premade as "CameraControls.lua" and then compare with your code on what it is wrong ...
You need mouse as well and a setup of camera to view from world
Hope that it helps you.
Good luck.
Where can I find CameraControls.lua?
-
I am trying to write a Camera Controller script (Yes I know there's a premade one), I have gotten the movement down, and logically I should move on with turning, so I am trying to program my script to move according to the Camera Angle, I tried writing self.Camera:GetRotation(), which returned a nil value resulting in error, then found out I had to write a Boolean to go with it, upon trying self.Camera:GetRotation(true), the same error occurred, here's my current script, and a log of my error: 9 : attempt to index field 'Camera' (a nil value)
-
Help
in Programming
4 hours ago, Josh said:I think these small changes will do what you want.
Oh god you remind me of my father, he could do anything, even if I had already tried it and it would just work, cheers mate! XD
- 1
-
Help
in Programming
4 minutes ago, Josh said:The trigger does this by setting the global variable "changemapname" to a new value. If you do the same thing with your button, then the value will be detected in the main loop and a new map will be loaded.
How do I do that in Menu.lua?
-
Help
in Programming
6 hours ago, Josh said:The FPS project includes a sample map where walking into an area will trigger a map change.
Yes I'm aware, but I'm not trying to make a trigger zone, no. I'm trying to add a button to the menu where the player can use anywhere, but when I try it out it just overlaps the map I'm already in and causes alot of bugs.
-
Help
in Programming
-
New error on the rise, oh joy! XD
Upon usage of TriggerChangeMap.lua in the base scripts, I find the error "Assert Failed" no comment.
I used my map name as a string, and used the object which parents the script as a fail-safe for falling out the map, in order to trigger a reset of the map in use.
start.map -- "start" (as used in the string)
-
I bought Leadwerks with no LUA or Visual Flowgraph experience, is there any kind of tutorials that can help me on my feet?
P.S: I am now broke, lol.
-
Whenever I go up to an object to pick it up, the game engine crashes with the error
"C:/Users//Documents/Leadwerks/Projects/firstgame/scripts/objects/player/fpsplayer.lua" : 712 : attempt to index field 'hand' (a nil value)
Help with First Person Camera Controller
in Programming
Posted
Oh ****, I use leadwerks not ultra