Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug. set_pos not called in body_enter #4683

Closed
eXponenta opened this issue May 17, 2016 · 5 comments
Closed

Bug. set_pos not called in body_enter #4683

eXponenta opened this issue May 17, 2016 · 5 comments
Milestone

Comments

@eXponenta
Copy link

eXponenta commented May 17, 2016

Windows 10. GoDot 2.0.3 stability

Bug. Why set_pos() for current node don't work on body_enter() signal. Other methods are called from that signal.

Ex:
func body_enter(body):
self.set_pos(Vector2(100,100)) # doesn't work
body.set_pos(Vector2(100,100)) # normal

@akien-mga
Copy link
Member

The issue is probably that your self node is not what you think it is? Please make a minimal example that reproduces the issue, or give more details on your current implementation.

@eXponenta
Copy link
Author

eXponenta commented May 17, 2016

body_enter_bug.zip

Test project.

Getting ALL get_ in body_enter work normaly. But ALL set_ cann't calls.

Sorry, I sent the wrong file. Updated

@carlosmarti
Copy link

I have this bug at the moment and i would like to add that you can call a method with a set_pos() inside it and have it work with another nodes body_enter() signal calling it.

@reduz
Copy link
Member

reduz commented Jun 7, 2016

if you use call_deferred("set_pos",position) does it work?

On Tue, Jun 7, 2016 at 6:41 PM, Carlos Marti notifications@github.com
wrote:

I have this bug at the moment and i would like to add that you can call a
method with a set_pos() inside it and have it work with another nodes
body_enter() signal calling it.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#4683 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AF-Z26BVYEO2GYxRbI1sKuJBEbIy9YYVks5qJeV_gaJpZM4If_us
.

@carlosmarti
Copy link

Yes the call_deferred() works to change its own position.

@reduz reduz closed this as completed in 95dc15b Jun 17, 2016
@akien-mga akien-mga added this to the 2.1 milestone Jun 24, 2016
akien-mga pushed a commit that referenced this issue Jun 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants