Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 6385

Python is an interactive, object-oriented programming language. In Blender, it is used as a general-purpose scripting language and to create add-ons to extend Blender's functionality.

2 votes

In a BGE RTS, how could I make a selection box to select Units?

Here's how to select people in general, by clicking on them with a button other then the one that sets the mouse tracker. Unfortunately, I don't know how to do a draw-box, but if someone else does, I …
ruckus's user avatar
  • 7,643
2 votes
1 answer
84 views

Text setting only when active

I know how to dynamically set the value of a text property in game using logic bricks, a log prop, a string and all that jaz, but how can I restrict when typing will edit it? Like if I had a first p …
ruckus's user avatar
  • 7,643
2 votes
Accepted

Text setting only when active

Okay! so I figured it out, and now I can start making my game. The "log" property, which I always thought was somehow logging the letters I entered, really doesn't. (misleading name :P) I read it's d …
ruckus's user avatar
  • 7,643
1 vote

Python to switch visibility between multiple objects (game engine)

I know you didn't ask for it, but i'm going to throw the logic brick answer out there just in case anyone who hates python with a passion comes along later with the same question. …
ruckus's user avatar
  • 7,643
1 vote
Accepted

How can I control a cube's movement with a function?

You can do this very simply with logic bricks and object properties. First , in the logic editor, hit N to open the properties editor. Now add a new property, make it a boolean type by clicking on the …
ruckus's user avatar
  • 7,643
1 vote
Accepted

Problems while creating a City using the OpenStreetMap maps

In OpenStreetMaps only the buildings in dark brown have had their shapes made available for blender. This means that what you are experiencing is normal. If you would like more buildings, select a dif …
ruckus's user avatar
  • 7,643
1 vote

Resetting camera after camera collision (BGE)

Here's the answer; Add an empty, slightly behind the player, and put the ray on that, set the ray distance to however long you wan it to be, and turn on true level triggering. you will need to chang …
ruckus's user avatar
  • 7,643
3 votes
1 answer
369 views

Reflecting a ray (of light) in bge?

I'm working toward a system where the player can bounce a ray around toward a target using mirror objects. Essential to this process will be making the ray reflect properly. Essentially, I thought it …
ruckus's user avatar
  • 7,643
1 vote
2 answers
792 views

How can i add an object when the mouse is released?

How (with python) can i simply activate an actuator once when the mouse is released. I don't need anything else (not mouse over, not if prop true) just plain-o'l plain-ol'. Thanks …
ruckus's user avatar
  • 7,643
2 votes
2 answers
655 views

How do I change the value of the "To:" text field on the Message actuator?

So I'm making an RTS type game, just for practice and exercise, but when I send someone somewhere, I want them to know when they need to stop. I decided this could be done by having the marker that th …
ruckus's user avatar
  • 7,643
1 vote

How would I approach creating "fall damage" in the game engine?

I don't know if you're accepting logic bricks answer, but you can simply have a property on the floor that the player can detect (or in some cases just sense for any collision at all). When the Collis …
ruckus's user avatar
  • 7,643
1 vote
Accepted

How to track an object to a specific property in the Blender Game Engine

Simple change. The syntax for the "Steering" actuator calls for a target field, not a track _object field. So your new snippet looks like this: def target_prop(cont): self = cont.owner objects = self …
ruckus's user avatar
  • 7,643
1 vote

change the global variable value from function in bge?

This is, no kidding, straight from my professors mouth. There are three scopes of Variables; one does not apply to blender. Local Form-Level Global Local variables would be like game properties, …
ruckus's user avatar
  • 7,643
2 votes
1 answer
145 views

My soldiers all march to the same spot, how do i give them seperate orders simulanelously?

In a follow up to this fantastic question that I've been waiting for some one to ask, I would like to know how I can send d people in an RTS game to different locations. I already have an empty being …
ruckus's user avatar
  • 7,643
1 vote
2 answers
8k views

Rotation matrix addition

I suck at programming but am trying to rotate an object a specific way. The line own.localOrientation=mathutils.Matrix(x, y, z) is giving me an error: TypeError: Matrix(): expects no args or a singl …
ruckus's user avatar
  • 7,643

15 30 50 per page