I am trying to make a game in BGE, I’ve used blender to make a game before but it was just modeling in blender and exporting to my coders to finish the game, but they have since graduated and can no longer code for me for this project. I’ve been going through tutorials but I’ve been having a few common problems when running my game
1.) When i run into a wall it acts like it is made of jello or rubber (i can use linV to stop that but then when i jump and push W (forward) it stops falling and moves in that direction)
2.) If i jump while touching the walls (because i am using the touch sensor so you can’t jump in mid air) it allows you to elevator jump out of the level
3.)I am trying to get the lighting to make the room only slightly lit but no when I hit P the room lights up as if the walls were made of light bulbs
I am doing this at school for a competition so most of the video tutorials are blocked and I don’t have much time to work on it at home because of Homework
Basically I am asking for a way to fix these problems, be it a link to a good tutorial (if the school doesn’t block it, asking for an unblock takes about 5 weeks on average ><) or information on how to fix these glitches, or even free-use python scripts to help with this. (I plan on learning Python when I have time, but right now I do not)
also I probably will be coming back often with other problems I have along the project and I hope that it won’t be a problem, I thank you in advance and hope to get these problems fixed soon.
The movement issues are a common problem, and usually are solved with servos. I believe Yofrankie used servo movement. If you are not familiar with Yofrankie, it is an open game project produced by the blender institute.
Right now it’s just 1 sun lamp, i have it set in the corner of a room with a hole in the top to act like sunlight shining in. The rest was going to be light by torches and other light sources of the type.
(The first level has a ancient underground temple theme)
You need to add limits on the Z axis if you’re using servo motion. See here
2.) If i jump while touching the walls (because i am using the touch sensor so you can’t jump in mid air) it allows you to elevator jump out of the level
Use a collision sensor at the base of the player and make it slightly smaller than the player’s bounding box so that when the player is up against a wall the sensor can’t touch the wall and trigger it.
3.)I am trying to get the lighting to make the room only slightly lit but no when I hit P the room lights up as if the walls were made of light bulbs.
Try reducing the energy of the light (perhaps use a lamp rather than sun) and use GLSL or Blender multitexture materials. Also make sure you’re in textured view when playing the game. Finally, I can’t think of a link off the top of my head for this, but might be worth looking into baking AO and lightmaps.
EDIT: Found this tutorial on light mapping. It’s for Blender 2.46 but it might still work.
If you’re looking to learn python I recommend Swaroop’s A Byte Of Python You can get through it in a weekend and it gives a great start for python basics.
Lights don’t work too well in BGE, unless you are using the GLSL draw method. In multi texture faces you can subdivide the mesh (decreases frame rate slightly), or use textures to fake shadows (what I do). Like battery said, try reducing the light’s energy.
Well I’ve fixed all the previous Problems and now I’d like advice on how to do a few things
1.) how to get an object (a small floating sphere) to follow a path and during the path play a sound clip
2.) how to make a character pick up an object
3.) how to make a boomerang like object
I’ve been looking around and so far for 2 & 3 look like something for parenting an object when i push a button, but I’m not sure how i would do so using logic bricks
Thank you again for all your help, this has to be one of the most helpful forum communities I’ve run into, quick responses and in depth answers ^^
modell a boomerang thats it ;).
It could be the same as with 1 -> IPO; I assume you mean something else. But here again, you need to make clear what exactly you want.
Sorry ^^;
I should have explained more
2.) I wanted it to when i click or press a certain button the object would be in the characters hands (or rather within a device similar to the gravity gun, for picking up things that would be either impossible to hold or dangerous to for a human, like fire or a spiked ball)
3.) I wanted to make it when I threw the boomerang that it picked up an object along the way and when it returned it would be held by the character (or in this case an upgrade for the device which when thrown would allow for grabbing of objects that are across a gap and out of reach of the character)