Jump to content

AggrorJorn

Members
  • Posts

    4,816
  • Joined

  • Last visited

Everything posted by AggrorJorn

  1. Yes that is indeed a good suggestion. Unity used this concept as well. In unity you create Projects. You can put all the stuff you want in this project. Every time you make a new scene inside this project, you can use the assests belonging to the project. When you make a new project, you can add new assests.
  2. For a start you could place this part //Position the camera TVec3 playerpos=EntityPosition(player); TVec3 camerapos=EntityPosition(cam); camerapos.Y=Curve(playerpos.Y+1.75,camerapos.Y,2.0); camerapos=Vec3(playerpos.X,camerapos.Y,playerpos.Z-5); PositionEntity(cam,camerapos); right after the main loop is created. At the moment your camera is being updated after the Update command. If you follow the Introduction to controllers tutorial (C++), you will see that you can replace the ball with the Controller. The pivot can remain the same although is not perse needed.
  3. In Lua. I meant that I will redo all Josh's C++ tutorials but then in Lua. At least the ones that I understand.
  4. This looks really good man. I have a closer look tonight. I think I am going to buy this. Keep up the good work!
  5. I am glad that I can help people out with these tutorials. I want to see how far I can go redoing all of the C++ tutorials Josh has made. Once those are done I am going to try to make real game tutorials. You know: the same questions that newcommers always have, but who don't really know where to start. Talking about basic gameplay stuff like: Creating menu and hud options menu switching and loading levels shooting a weapon checkpoints and save game This is actually a lot of stuff that I nead to learn and find out for myself as well, so it is a good practise for me 2. (hence the slogan in my signature.) And I also want to see if I can beat Josh's reputation..
  6. I''l be following this closely.... Looks really interesting.
  7. This video tutorial is an introduction to lights. The tutorial will explain the following: Different light types Creating lights with Lua. http://leadwerks.com/werkspace/index.php?/page/resources?record=24
  8. Since I bought Leadwerks there are 2 projects I am working on sort of speak. Ball game: something like marble blast, but with richer worlds. There is not really a story, it is just gameplay. It is more a test to teach my self some scripting. Horror game: currently going under the name of Project: Silent Rose. The game is combination of inspired works like Eternal darkness, Penumbra (the interactive system), Fahrenheit/indigo prophecy. The player is going to have rich interactivity with the scene and everything, including menu's and a health system. We want our menu's, inventory and health system completely realtime (no huds). The storyline is based/inspired by the work of HP Lovecraft. At least that is the sort of ambience we are going for. Developer diary 1 and story-blog The game is written entirely in Lua.
  9. You don't need the processScene anymore. you just have to load the scene in C++ and Lua should take care of the rest. This topic might help: http://leadwerks.com/werkspace/index.php?/topic/381-scene-loading-example/page__p__5665__hl__loadscene__fromsearch__1entry5665
  10. Have you copied the entire scripts folder to your project folder? Have you copied just de sbx? because you also have raw and a texture file. What is the code you are using now?
  11. thanks paramecij, I tried positioning before but I used it the wrong way: ballPivot:SetPosition(ballBody) it was like you said: ballPivot:SetPosition(ballBody:getPosition(1)) thanks ZioRed and paramecij +1
  12. The video should be up in a momement. I will send you a pm. a couple of things: the receive message function needs to be placed after the CreateObject function. Take a look at the switch. your hand textures is called hand.dds.dds.
  13. Hi guys, thanks for answer. ah I just realise that the CreatePivot sets the body as parent, instead of placing it at the body. I tried setting the body as parent to the pivot, but hen the camera controls move the ball. ballPivot = CreatePivot() ballBody:SetParent(ballPivot) camera:SetParent(ballPivot) Setting the body for rotation makes this even worse, since the camera rotates around the rolling body. I converted this code diirectly from working C++ code: http://leadwerks.com/werkspace/index.php?/files/file/121-third-person-camera-ball-game-example/
  14. Nice story to. So what is your planning with LW?
  15. So you have steam installed, But do you also have games installed? - VLC Player - Chrome - UltraFXP (which unfortunately doesn't run on 7) - Snagit
  16. I tried converting my C++ third person camera to Lua, but I am having some dificulties with an unstable camera. The camera looks fine but ones I start to move around I notice that there are bumps and stuttering moments. The code below shows a ball rolling of a slope. use the mouse to for third person camera movement. You notice that the level starts to shivver or something like. Sometimes you will get an exception error as wel.. If someone has a good suggestion to what might be wrong here, let me know! require("Scripts/constants/collision_const") require("Scripts/constants/engine_const") require("Scripts/LinkedList") require("Scripts/filesystem") require("Scripts/math/math") --Register abstract path RegisterAbstractPath("") --Set graphics mode Graphics(1024,768) --Create framewerk object and set it to a global object so other scripts can access it fw=CreateFramework() SetGlobalObject("framewerk",fw) --Variables mx=0.0 my=0.0 ballMass= 60 --camera camera=fw.main.camera camera:SetPosition(Vec3(0,2,-6)) camera:SetRotation(Vec3(30,0,0)) --light light=CreateDirectionalLight() light:SetRotationf(45,45,45) --material material=LoadMaterial("abstract::cobblestones.mat") --ground groundBody=CreateBodyBox(20,0.1,4000,ground) groundBody:SetPosition(Vec3(0,-4,1)) groundBody:SetRotation(Vec3(25,0,0)) ground=CreateCube() ground:SetParent(groundBody) ground:SetScale(Vec3(20,0.1,4000)) ground:Paint(material) --ground --ball ballBody=CreateBodySphere(1) ballBody:SetPosition(Vec3(0,8,1)) ballBody:SetMass(ballMass) ball=CreateSphere(28) ball:SetParent(ballBody) ball:SetScale(Vec3(2,2,2)) --ball --collisions DebugPhysics(0) Collisions(1,1,1) ballBody: SetCollisionType (1) groundBody: SetCollisionType (1) HideMouse() MoveMouse(GraphicsWidth()/2,GraphicsHeight()/2) FlushKeys() FlushMouse() -- third person camera pivot ballPivot = CreatePivot(ballBody) camera:SetParent(ballPivot) camrotation=Vec3(0,0,0) while KeyDown(KEY_ESCAPE)==0 do mx=Curve(MouseX()-GraphicsWidth()/2,mx,6) my=Curve(MouseY()-GraphicsHeight()/2,my,6) MoveMouse(GraphicsWidth()/2,GraphicsHeight()/2) camrotation.y = camrotation.y-mx/10.0 camrotation.x = camrotation.x+my/10.0 ballPivot:SetRotation(camrotation, 1) fw:Update() fw:Render() Flip(0) end
  17. The world of games, game development and game design is awesome. I just love it. The fun part is, that I only realised this since the past year and a half. Before that, I just liked playing games. Nothing else slipped in to my mind about "how a game is made etc.". I like to tell you a little story about myself. We didn't have a computer at home until I was 10. Before that, I used to play games at my neighbours house. My neighgbours where German and their kid had a computer at his room with one game. This game was some kind of science fiction game. The first level you would have to fly above this icy landscape shooting all kinds of robots, including this really huge weird elephant kinda looking robot. It took about me about 5 years to understand that this was called "Starwars". I was 10 I think when my dad got himself a computer including 2 games specially for me. Since my dad worked in Germany, the games he bought were also German. Although the village where I live in lies in the Netherlands, most of the people are either German or Americans (Awacs airbase and Military Outpost are like half a click away from my village.) The 2 games where Abe's Oddysee (German)and Delta Force (my first English game). Okay now here is somethin funny: I liked playing games on my computer, but for the rest I disliked computers. I didn't like typing in this green/gray interface that was called 'W98'. I rather prefered writing stuff down on a piece of paper. When The first Dial-up connections were introduced most of my classmates started talking about a program called EM ES EN. Anyway I did not care about computers and their stupid programs and especialy not the inter net (back then I thought it were 2 words). I only liked the games. My first game that had an editor was 'Cossacks'. And alhtough it was a demo, you could play with it for as long as you want. Al the enemies in the game feared my massive armies muahaha (evil laugh). Now here comes the most ironic part of my live. I finished mid school aged 16 and I had absolutely no idea what to do next. I actually went to an open day for a Health care education. But the idea of changing old people's diapers quickly made me change my mind. A friend of me said he wanted to go IT because he new a lot more about computers then I did and it seemed interesting. I was still totally blunt about my direction, so I decided as a total "computer-newb" to join IT education. Ironicly my friend did not go IT after all. I felt really misserable the first year. Everyone knew more then me (which wasn't hard anyway, since I knew zero.). From Operating Systems to CPU, from Windows to something called "Linux". They could as well talked Chinese, because I did not understand a single word. I realise that my smartest decision I have ever made was when some IT student gave me this sticker saying "I Love Firefox.". Since my computer knowledge was pretty much nihil I hadn't the slightest idea what Firefox was. The decision was to not say that out loud. (I personally think that they would have killed if I had.) Yes, I still had trouble leaving my naive idea of my opinion towards computers. The 'Internet Explorer idea' was the biggest of them all. I thought that 'Internet' was an abbreviation of Internet Explorer, thus meaning the same thing. Probably 99% of the IT students played a game called "War of Worldcraft" or something like it. Since I already fell behind on everything, I decided to buy it as well. And I didn't like it. Sure it was fun at the beginning but it just boring after a while. But as time went by I became more and more familiar with the IT world. Year 1 was okay after all, since the rest of the education sucked big time. The education supposed to teach you a way to prepare yourself for adulthood. Big wonderful HAHAHAHA. I had a hard time understanding this all, because my education was more something like a pre-school slash prison slash citydump. If you want to see a collection of criminals, junkies and stereotype nerds, just visit my class. second problem: no girls what so ever. In the past 4 years there hasn't been a single women inside the school building. (except the cafeteria lady). In the mean while, games kept playing a big part of my life. I bought my first console: xbox 360. Although it is a great product, it can never, never break through the wall of computer gaming. So to sum up this part: 3,5 years ago I knew nothing about computers, programs, Operating systems and above all nothing about game development. This changed a little bit when I found a program via youtube, called '3ds Max'. Back then I used it for making small movies and animations, but not for game designing. This changed when I played this game called Marble Blast. It was made by the Torque engine. I don't know why exactly but I started googling this torque engine. We are talking about 1.5 years ago here. The Torque engine itself seemed too difficult, so we (Dreamhead ) started with buying the Torque game builder. It is a great program for making 2d games. However, due to bad documentation this program was very soon abonded. Dreamhead mentioned "FPS creator.". So we started using FPS creator. It was fun, it was cool, even made a few cool examples, but we reached the limits very soon. My first model in Fpscreator. The biggest mistake I made then was going for Darkbasic. With absolutely now programming experience I just couldn't handle darkbasic. And then I saw this add on the game creators forum about the Leadwerks engine.....!! So I am 8 months further and a lot has happened since I purchased the engine. First of I graduated my IT education . For the past few months I have been looking more and more for my upcoming education. At first I thought about NID (Netwerk Infrastructure Design), then I thought of Programming(C# and ASP.net) and only since a couple of months I have been considering going in to game development! At first I was sold when I went to an open day at the SAE Qantm college in Amsterdam (International college for media and game creation). However lady unfortunate came looking around the corner: Games programming was to be no longer given at the Amsterdam location. I would have to go to either Munich, Berlin or London. Luckely another option was available: High School of Amsterdam. They offer a game development education for 4 years. Many languages from Java, Actionscript to C++ are being tought there. I have subscribed for the classes of next year, so if that would come true, man what would be great!! What I want to tell you with this blog is the following: Josh mentioned in one of the video tutorials that he got in to games programming because of quake. For me it is the Leadwerks engine. And that is why I want to say to Josh (and his team)as well as the Werkspace community: Thanks for finnaly opening my eyes! It has been a dream for me to become a game developer, but I never realised it that it is actually possible to become one! Lets hope I can start at Game development in Amsterdam next year. :D Thanks for reading!!
  18. It's pitty that you can only upload movies to Youtube with a max of 10 minutes. I had to cut the tutorial in 3 parts. Part 1: Part 2: Part 3:
  19. Thanks Marley, That was the problem, because the pivot (the Vec3) was actually inside the cube. That way the 2 points couldn't see each other.
  20. I am trying out the PointVisible command. I don't get any errors but neither getting the required results. I tried several parameters for the PointVisible command. p1= cube1:GetPosition(1) p2= cube2:GetPosition(1) info = 0 visible = PointVisible(p1,p2,0,0,0) if visible ==1 then info = 1 end fw:Update() fw:Render() SetBlend(1) if info == 1 then DrawText("Point is visible",0,40) end SetBlend(0)
  21. Innosetup does the thing you need I believe. Have you tried it? It works really good: See the attachment.
  22. I have created PDF file of the tutorial as well. For those who want to have a something to read while going to the bathroom.... @Red Ocktober: thanks, it's cool to know that more advanced programmers can use this tutorial as well.
  23. first: use the SetShadowQuality command: http://leadwerks.com/wiki/index.php?title=Lights#SetShadowQuality second question: You must copy the usertype.dat from the LE SDK CPP folder into your Visual Studio's IDE folder. By default this is located in c:\program files\visual studio 9.0\common7\ide.
  24. totally forgot about the video. I'll be making you one for the weekend.
×
×
  • Create New...