BGE: menu buttons and opening webpages

•February 25, 2015 • Leave a Comment

This tutorial will look at the method I use to create menu buttons in the BGE. We’ll cover how to change a button’s text when it’s being hovered over, how to change the game scene or exit from a button and how we can use the webbrowser module to open websites from within the BGE.

Continue reading ‘BGE: menu buttons and opening webpages’


BGE: passing arguments to __init__() when subclassing a KX_GameObject

•February 1, 2015 • Leave a Comment

Extending the KX_GameObject is a powerful way to add extra functionality to game objects. Once built, custom classes can speed up development while maintaining a tidy syntax. However, difficulties arise when trying to pass additional arguments to a subclass of the KX_GameObject. This tutorial looks at the various ways this can be overcome.

Continue reading ‘BGE: passing arguments to __init__() when subclassing a KX_GameObject’

Arduino power backfeed

•January 24, 2015 • Leave a Comment

On a recent Arduino project I had encountered issues with power backfeeding from the Arduino into other areas of my project. Since there wasn’t much on the net about this issue I thought I’d write about what I’d encountered and the various solutions.

Continue reading ‘Arduino power backfeed’

Lists of empty lists in python

•January 8, 2015 • Leave a Comment

I recently needed to create a list of empty lists for a python script. What seemed to me like the most straight forward solution wasn’t actually working as expected.
Continue reading ‘Lists of empty lists in python’

BGE: Saved game directories

•January 3, 2015 • Leave a Comment

I have recently noticed that one of my posts on saving/loading was linked to as part of an answer to a question on the Blender Stack Exchange. Since the question was related to saving files in particular directories it highlighted a gap in this tutorial series: where do saved files go? How can we control where they get saved? How do we find them again? Since we’ve been talking about file I/O it makes sense to talk about directories. So, lets start with an experiment.

Continue reading ‘BGE: Saved game directories’


•December 30, 2014 • Leave a Comment

I always like to try and make cards for people rather than buy them. As the number grows I thought I was time that I started detailing the different things I’ve tried. I’ll try and update this from time to time as I make more.

Continue reading ‘Cards’

Improving readings from the HC-SR04

•December 29, 2014 • Leave a Comment

In my previous post on the accuracy of the HC-SR04 ultra-sonic range finder I found that there were issues that needed to be compensated for. However, using it in practice revealed further difficulties…

Continue reading ‘Improving readings from the HC-SR04’