Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Saker

Pages: [1]
1
Python / Re: Can't get rectangle's intersects function to work?!
« on: May 10, 2013, 08:05:36 am »
Yeah, figured that out, thanks!
I hope the bug-fixes would come out soon though; is there a place I can report them directly, a public repo or something? also are there any other python bindings currently active?

2
So, (according to http://python-sfml.org/api/graphics.html#rectangle) I'm trying to do this :
player_rect.intersects(enemy_rect)

but then I get this:
  File "graphics.pyx", line 188, in sfml.graphics.Rectangle.intersects (src/sfml\graphics.cpp:4442)
  File "graphics.pyx", line 97, in sfml.graphics.Rectangle.__init__ (src/sfml\graphics.cpp:2420)
TypeError: __init__() takes at most 2 positional arguments (4 given)

What's going on? I'm guessing the API documentation has not been fully updated for SFML2 since the example code yields the same results, if so, what arguments (types) should I pass?

I'm getting the rectangles using global_bounds btw.

Edit: I'm using python 2.7

-something python bindings-specific?-

Pages: [1]
anything