Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 4 characters in body; edited tags
Source Link
David
  • 49.7k
  • 40
  • 162
  • 318

Suppose I have character surrounded by a cubic room. 
My goal is to move that character to the opposite position of the room every time the character reaches one of the walls, roof and floor both included.

Like in the classical game "Asteroids" but with the Z axis included.

It's already possible to print the position by using a game property (string) attached to this module:

def update(cont):
    own = cont.owner

    own["pos"] = str([round(v) for v in own.worldPosition])

But how do I create the interval able to move the character object to the desired position?

There is a .blend prototype hosted HERE. Asteroids3D prototype

Thank you.

Addendum 1): There is another prototype that can be found here:

LINK TO THE SECOND PROTOTYPE

For this second prototype if you press only the "W"W key continuously, the character will move to the opposite side as intended. But... How, how does one achieves theachieve this integration?

Suppose I have character surrounded by a cubic room. My goal is to move that character to the opposite position of the room every time the character reaches one of the walls, roof and floor both included.

Like in the classical game "Asteroids" but with the Z axis included.

It's already possible to print the position by using a game property (string) attached to this module:

def update(cont):
own = cont.owner

own["pos"] = str([round(v) for v in own.worldPosition])

But how do I create the interval able to move the character object to the desired position?

There is a .blend prototype hosted HERE. Asteroids3D prototype

Thank you.

Addendum 1): There is another prototype that can be found here:

LINK TO THE SECOND PROTOTYPE

For this second prototype if you press only the "W" key continuously, the character will move to the opposite side as intended. But... How does one achieves the integration?

Suppose I have character surrounded by a cubic room. 
My goal is to move that character to the opposite position of the room every time the character reaches one of the walls, roof and floor both included.

Like in the classical game "Asteroids" but with the Z axis included.

It's already possible to print the position by using a game property (string) attached to this module:

def update(cont):
    own = cont.owner

    own["pos"] = str([round(v) for v in own.worldPosition])

But how do I create the interval able to move the character object to the desired position?

There is a .blend prototype hosted HERE. Asteroids3D prototype

Addendum 1): There is another prototype that can be found here:

LINK TO THE SECOND PROTOTYPE

For this second prototype if you press only the W key continuously, the character will move to the opposite side as intended. But, how does one achieve this integration?

added 356 characters in body
Source Link
chicOrtiz
  • 495
  • 2
  • 8
  • 22

Suppose I have character surrounded by a cubic room. My goal is to move that character to the opposite position of the room every time the character reaches one of the walls, roof and floor both included.

Like in the classical game "Asteroids" but with the Z axis included.

It's already possible to print the position by using a game property (string) attached to this module:

def update(cont):
own = cont.owner

own["pos"] = str([round(v) for v in own.worldPosition])

But how do I create the interval able to move the character object to the desired position?

There is a .blend prototype hosted HERE. Asteroids3D prototype

Thank you.

Addendum 1): There is another prototype that can be found here:

LINK TO THE SECOND PROTOTYPE

For this second prototype if you press only the "W" key continuously, the character will move to the opposite side as intended. But... How does one achieves the integration?

Suppose I have character surrounded by a cubic room. My goal is to move that character to the opposite position of the room every time the character reaches one of the walls, roof and floor both included.

Like in the classical game "Asteroids" but with the Z axis included.

It's already possible to print the position by using a game property (string) attached to this module:

def update(cont):
own = cont.owner

own["pos"] = str([round(v) for v in own.worldPosition])

But how do I create the interval able to move the character object to the desired position?

There is a .blend prototype hosted HERE. Asteroids3D prototype

Thank you.

Suppose I have character surrounded by a cubic room. My goal is to move that character to the opposite position of the room every time the character reaches one of the walls, roof and floor both included.

Like in the classical game "Asteroids" but with the Z axis included.

It's already possible to print the position by using a game property (string) attached to this module:

def update(cont):
own = cont.owner

own["pos"] = str([round(v) for v in own.worldPosition])

But how do I create the interval able to move the character object to the desired position?

There is a .blend prototype hosted HERE. Asteroids3D prototype

Thank you.

Addendum 1): There is another prototype that can be found here:

LINK TO THE SECOND PROTOTYPE

For this second prototype if you press only the "W" key continuously, the character will move to the opposite side as intended. But... How does one achieves the integration?

Source Link
chicOrtiz
  • 495
  • 2
  • 8
  • 22
Loading