This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
The fixtures of all physics objects are shifted one pixel down and to the right. I found this out by drawing them with physics_world_draw_debug.
I dont know what to do, i have googled this problem but cant find other with the same problem. I tried to go into every object's collision shape and then draw it one pixel above and to the left from where i really want it to be and this does work, but it seems wrong to do it that way.
fix_solid = physics_fixture_create()
physics_fixture_set_box_shape(fix_solid, 8, 8);
physics_fixture_bind_ext(fix_solid, id, 0, 0);
physics_fixture_delete(fix_solid);
When i bind a fixture to the center of my solid object with above code,(with the sprite origin centered) it still doesn't work. Unless i use:
physics_fixture_bind_ext(fix_solid, id, 1, 1);
I am using Gamemaker studio 1.4.
Subreddit
Post Details
- Posted
- 6 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/gamemaker/c...