A little hindsight? Hehehe. It comes from roughly 6 years of programming experience. I definately don’t feel very confident programmingwise, but I’ve been around programming for a very long time. Before I could program myself, I watched my dad program in c++, and java. I did a lot of weak programming on my graphics calculator back in the day, and I’ve been dinkying around programming python in gameblender ever since they first implemented it.
Some things you can learn from tutorials, most you just have to learn by doing. Logic bricks by the way are a fairly good way to start to learn programming, because they are easy and can teach you some of the basics (if statements and variables namely). Programming may seem weird and confusing, but it’s not all that different from say, learning a foreign language. Which I am bad at for some reason, but I can handle programming.
Anyway, thanks SeaCigar for the ego boost:)
And Fred, sorry I misinterpreted your question, hehe. It’s a lot easier to answer, but I think the frame delay will still be there. I actually downloaded your file this time (imagine that?) and the problem is the format the position is saved in. In your script, Send.Position, you are saving the x position as a string to the object. In the script S.P, you are trying to set the position using just that x value, still in string form. To convert the value into a number, you use the eval command, like “eval(us.position)”. But this wont solve your problem, because the setPosition() command requires an x, y, and z value. The easiest way to fix, is to add these lines above the setPosition command in S.P:
ourpos = us.getPosition() #Get our current position to use for the y and z values
Then change the setPosition line thusly:
the setposition command works like this: object.setPosition([x value, y value, z value]), and the us.position (which is the x value) needs to be turned into a number from a string with the eval command.
Get back to me if it still doesn’t work or if you have any questions on why it works this way.