This site requires JavaScript, please enable it in your browser!

What is happening right now?


reply to Moving different actors (actors a) to a location closely around new actor b

By habidex - about 6 hours ago
Actually, a file containing names of students was read and used to populate number of students into the world. I want to distribute the students randomly around different groups. So I need to have control over each individual actor in order to allocate it to a group. I have already populated the number of group and the students too are populated below the list of groups. I just want the students to start moving in a random motion to get attached to a group depending on the number of students available and the number of groups

reply to School project- create a whack a 'pig' game

By danpost - about 7 hours ago
Did you try: <Code Omitted>

reply to Bug in setRotation method?

By danpost - about 8 hours ago
stevetone wrote...
Is there an alternative method that I should be using to move in a more precise manner? It's not that important, as I am just bouncing ball objects off the world edge, but it would be nice to know if there is a more advanced technique to be learned.
There are several helper classes to produce smoother and more precise appearing movement. I have a QActor class in my Asteroids w/improved QActor SuperClass scenario. Plus there are other around.

reply to save and load

By danpost - about 8 hours ago
Since it appears you only have one object on any one location at a time, it would be easier to use one string where the position in the string determines the position in the grid. Then, you only need use one character to represent the type of object and the space character for an empty location to build the string (I used the last character in the name of the actor type since they were all different). <Code Omitted>If these method are located in the world class, remove all 'getWorld().' occurrences.

reply to Timer/Clock for a game

By danpost - about 10 hours ago
I found a couple of mistakes in my previous post. (1) line 4 for the button example should be: <Code Omitted>(2) at the end, I had referred to the first 7 lines of the button class -- well that would more correctly be 7 of the first 8 lines (all but line 7).