Hi,
If anyone is interested, I created a very simple Blender planks physics game tutorial… uses very simple physics and very simple (yet effective) texturing/lighting. The idea was to create something simple and easy to create so that anyone could follow along with the tutorial…
============================
Follow up questions and answers:…
Q: How did you attach a monkey head to the Empty? A: Monkey head was made a child of Empty: Object > Parent > Set (Ctrl+P), you can then use Alt+P > “Clear Parent Inverse” to make child’s origin (location) relative to parent’s. Also, note that multiple physics objects cannot co-exist in the same location, so monkey head’s physics properties were set to: “No Collision”.
Q: Are you using the MouseLook script? A: No, see 12:48 of tutorial - part 1. As shown in the video, my tutorial .blend file uses a single simple script (player.py) for everything. Feel free to use a pre-done “MouseLook” script for your project. I used the Python API Reference to create my script.
Q: How can I get / look at your script? A: Download the .blend file (link in the video’s description!); open with Blender 2.5, in the upper right window, click the icon next to “Instructions” and select player.py
Thanks a ton for using BlendUpload! As you probably noticed there’s still a ton of glitches in the new engine (such as upon registering you may of been granted an admin, don’t get too excited though, it’s getting fixed) Also as you’ve seen you can use direct download links
Anyways (sorry for the offtopic, I just love seeing people use my service) I believe this should be posted in the resources section, maybe get a mod to move it?
I want to render the objects (that is the balls) that are “added” when the buttons are clicked. When I enable record during game engine, nothing get’s created. That is, all the balls that were created just disappear. How do you render those?
I’m trying to fill up a cube with the balls, but they disappear when the game engine stops. I noticed in your renderings you have more than one ball in the scene at a time. How do you do that?
Unfortunately there is no simple (Blender, UI) way, you need to code that in Python. In Python you can do anything to a bpy scene while a bge scene is running, including adding objects, if you don’t want the overhead of adding objects, you can pre-create numbered objects and set a keyframe off-camera before it’s appearance frame, but to do that you need to script your own bake (not use the built-in record to animation), which is what I do for animations. I’m working on some tools related to this… but I can’t promise anything.
Yes, I have discovered the “bpy” API. I am now able to write scripts to simply duplicate an object several times off-screen, and just let them fall naturally in the game engine. A simple forloop with maybe three lines of python code. Very usefull. I think I’m ready to dig into the BGE API now.
I’m just curious as to why my building falls without interaction? It’s like it wiggles it’s way to self destruction. This happened with both; the tutorial file, and the custom made file. I’ve been messing with the settings for some time but no luck.
seems like size matters! (sorry for sound like a bad joke)
I don’t know why, but if I resize to say 0.3 (thirty percent) the structure stand still… but when I decreased the size, everything went a lot more unstable…
other thing that I noticed, is that the bigger the objects the slower everything is and vice versa… I thing that probably there is a way to control how thing react under different scales…
but as I said, it is my first time messing with BGE, so I don’t think I can fix this for now…
might have something to do with scale, all the objects used in the game engine should be scaled to 1.0 so if they are not just apply scale to them ctrl+a