Blender 2.5 Simple KEVA Kapla Planks Physics Game Tutorial

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…

http://imgur.com/ZYP7F.jpg

Here’s the tutorial intro (followed by 2 Parts, available in HD):
YouTube: Blender 2.5 Planks Physics Game Tutorial - Introduction
Skip to 1:15 in introduction if you just want to see what it looks like.

Link to (2.55) .blend file: PlanksGameTutorial_blend.zip

Cheers.

============================
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 :smiley:

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?

Thanks for hosting the Tutorial file!

Awesome! Thanks for this!

Follow up Questions and Answers will be addresses in this thread, see first post.

i found this very useful. thanks alot.

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?

Very nice!

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’ve been trying to figure out how to do that for a long time. Could I have an example script?

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.

yeah, same here… I can’t understand why…

its my first time messing around with bullet physics and its kinda of disappointing :confused:

I tried to change almost everything for the planks under the physics tab, but no result still…

any ideas anyone? this looks like a lot of fun!

(I’m using blender 2.57 by the way…)

this is very cool, ahaha I ll try it out!

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

Shut up. You’re a Blender expert.

Thanks to this youtube user: http://www.youtube.com/watch?v=qSJGCR1WBVI

Seems like you have to change the physics steps to the highest possible value (5) under the world tab in the proprieties panel.

I did it a few weeks ago, and everything is working as expected now!


I love this but I have to ask, how did you unwrap that skydome!?

nice tutorial there =]