Jump to content

Azure_Zero

Members
  • Content Count

    17
  • Joined

  • Last visited

Everything posted by Azure_Zero

  1. I would love this if it also worked on linux, as I'm trying to develop for the linux community first.
  2. I've been following the Project Saturn Tutorials and got to the point with the barrels but I get the Error: Attempt to get Length of Field 'sound' (a nil value) How do I fix it. --[[------------------------------------------------------------------- This is a simple script to provide an impact sound for a physically interactive object. ]]--------------------------------------------------------------------- Script.soundfile1=""--path "Sound 1" "Wac file (*.wav):wav|Sound" Script.soundfile2=""--path "Sound 2" "Wac file (*.wav):wav|Sound" Script.soundfile3=""--path "Sound 3" "Wac file (*.wav):wav|Sound" Script.soundfile4=""--path "Sound 4" "Wac file (*.wav):wav|Sound" Script.threshhold=2--float "Threshhold" Script.maxfrequency=300--minimum delay between sound plays Script.range=20--float "Range" --Global values ImpactNoiseLastSoundTime=0-- This will be shared among all instances of this script and ensure we don't play too many sounds function Script:Start() self.sound={} for n=1,4 do local filepath = self["soundfile"..tostring(n)] if filepath~="" then local noise = Sound:Load(filepath) if noise~=nil then table.insert(self.sound,noise) --self.sound[#self.sound+1]=noise end end end end function Script:Collision(entity, position, normal, speed) if speed>self.threshhold then if #self.sound>0 then local collisiontype = entity:GetCollisionType() if collisiontype==Collision.Prop or collisiontype==Collision.Scene then local t = Time:GetCurrent() if t-ImpactNoiseLastSoundTime>self.maxfrequency then ImpactNoiseLastSoundTime=t local n=math.random(#self.sound) local noise = self.sound[n] self.entity:EmitSound(noise,self.range) end end end end end
  3. Another Option that could run side-by side with Project Saturn would be a C++ version of Project Saturn. Getting folks examples and ideas of what is needed for a C++ game, and give hints to some answers they seek
  4. So you can see why I would also like it if Leadwerks is able to use/intergrate Daz genesis (1 and 2) characters natively or in a separate model/render path as the Daz genesis bases are powerful and well made. Daz Indie Dev licenses are $500, but the quality and quantity make it worth it. also When Networking is done, I would like it, so that when we publish a game (not workshop publish) that it can have a simple level editor that only uses in-game assets/entitites, ... etc to increase that game's community as well as the leadwerks community.
  5. When Networking is done, I would like it, so that when we publish a game (not workshop) that it can have a simple level editor that only uses in-game assets/entitites, ... etc to increase that game's community as well as the leadwerks community. I would also like if Leadwerks is able to use/intergrate Daz genesis (1 and 2) characters natively or in a separate model/render path as the Daz genesis bases are powerful and well made. (though folks would need to buy the $500 indie dev license to use them in leadwerks)
  6. Nice this is like Goblinworks Crowdforging for Pathfinder Online where backers decide what features get priority. For intergration I would love to see some work done for Daz, as their character models, props, scenes are well done and they have gaming licences available for using Daz Content.
  7. I filled in the MAP::Load(mapname, StoreWorldObjects,NULL,Map::LoadScripts) and the error changedto Error 1 error C3867: 'MainMenuState::StoreWorldObjects': function call missing argument list; use '&MainMenuState::StoreWorldObjects' to create a pointer to member
  8. Yep, I included that. I'll move the function next to the class file and see if that fixes it.
  9. I think a useful new functions for maps would be GetCameras (returns a list of camera) GetLights (returns a list of lights) GetModels (returns a list of Models) etc if folks need quick access to specific entity types
  10. We have a winner, who got what I was asking for, I pasted the code in, but I'm getting a problem on Map::Load(mapname, StoreWorldObjects); I'm getting Error 1 error C3867: 'State::StoreWorldObjects': function call missing argument list; use '&State::StoreWorldObjects' to create a pointer to member
  11. No, I'm trying to not create a camera in code, but tell the code use a camera in the level/map/scene. The code is in C++, not lua.
  12. Hi I'm trying to set the camera to one I have in the scene Currently I'm using one that is created, but I would like to switch to one that already is in the scene/level/map. I'm curious as to how to do this? Thank you for your time and replies AZ
  13. I backed at the Pro Backer level, does it cover a Windows Standard version of Leadwerks?
  14. I just found this post. it is helpful in that it links to samples and tutorials of some of the items in the list. (some in Lua, others in c++) And as one person once said "Patience is a Virtue."
  15. Since I'm very new to Lua and to programming with an API in C++. I think a starter kit or template kit would be nice for the beginners to this, who could see what does what, why it's needed, and how it works. This would give a base idea of a foundation for experimentation and development of their idea of a game. As some of us may have a very hard time combining the various tutorials (or no tutorial on subject in lua) and getting the engine to run a single player experience like the start of Half-life, Menu screen, start game, no weapons, explore, then **** hits the fan then load new level, test new weapons, going through a breakable wall to the exit. If the starter kit / starter template is a good idea I think it should contain the following example maps; an example of creating and using a statemachine for main menu, an options menu that effects the game, and the game itself, an example of level/map switching, an example of weapon pickup and weapon switching, and have an example of two weapons, a melee (crowbar, knife etc) and a gun which displays it's ammo count when selected (to help in learning to display ammo count, HP, SP etc.), An example of a breakable wall, or building collapse from breaking a support. and a final example where all the examples are tied to gather. All of these should be covered in both C++ and Lua langauges to help those who are new to programming in either of these languages and picked up the engine, since it looks to be better than some of the other engines out there. Now, I will admit I'm aiming to make an RPG, but since the FPS genre is the easiest type of game to start from. It would be the best starting point to learn from. And if people enjoy the starter kit, maybe a more advanced kits could be made to cover more advanced things like; creating or modifing the AI behavior (learn AI logic and processing), Character subtypes (learn inheritance), inventory systems, Advanced map features, ... Etc
×
×
  • Create New...