I am using GM8.0 and I can't get any object to spawn at the correct x & y axis.
I was assuming this would work:
GmnBodySetPosition(body, x, y, z);
But it doesn't show the object.
I let the object display it's x, y and z axis and it says it's in a position where I should see it but it aint there.
Ah, sorry! I fixed it finally
Another problem :/
http://g2f.nl/r45szz <- I'm not allowed to img tag .png files... :/
The big block in the back is moving from and towards the camera. It is supposed to push the coins (as in the game @ the fair) but they're going trough the block.
collision_shape = GmnCreateBox(global.world, xsize, ysize, zsize, 0, 0, 0); body = GmnCreateBody(global.world, collision_shape); GmnReleaseCollision(global.world, collision_shape); GmnBodySetMassMatrix(body, 0, 0, 0);//It is supposed to have mass, but I don't want it to jump up n down GmnBodyLinkObject(body, id, false); GmnBodySetPosition(body,x,y,z);
Then I make it slide back and forth, and update it's position every step by using this:
GmnBodySetPosition(body, -10-xx, 0, z);
I am changing it's x axis and then updating it's position using GmnBodySetPosition.
I've seen createCustomSlider but I'm not really sure how to use it :/
Some help would be great!
Edited by NYS, 09 August 2011 - 02:12 AM.