You have to apply them yourself, but it is pretty simple to do so. No, physics are in their own world. And you have to create floors and walls in there.
Sometimes it's easier to learn from a step-by-step tut than an example like the physics lab so I agree that there should be a good tut. @Vega 's mesh tutorial was illuminating, if someone can make a physics tut like that it would be great
Sure, no college for a few days so we can totally work on that.
Hey, how do you have an if clause where you say that something is not equal to whatever it is your comparing?
I thought it was ~= but I don't think so anymore because it doesn't work.
local bod = bodies[math.ceil(touch.x/32)][math.ceil(touch.y/32)]
if bod not == nil then
bod:destroy()
end
I don't think destroy() deletes the variable, the variable is still a body, it just doesn't interact with its surroundings, so I think body:destroy() then body == nil should do the trick. Lemme guess, you are fixing the bug where if you tap an empty area it crashes?
Well, unfortunately, I have to go assist my aunt, so I may be unavailable for a while. (I could still operate off my phone, but no code would be tested. X()
I had a problem with the drawing speed for a game I was making. I got around it by drawing the tiles onto an image object, then displaying the image every frame instead of drawing each tile individually.
Please don't post links to the Junk Jack art assets. They are copyright and the developer put in a lot of hard work to make them for his game. I've removed the link.
Comments
Aaah. :-) I was going to suggest using the char.png file in the minecraftpe.app folder
or (if this works) go here 
Holy crap!!!! Man, I told myself I was going to sit down and learn about the physics engine one day! Tht's freakin' awesome!
I barely know it! Who thinks someone out there should write a tutorial on it?
can physics be applied to sprites/meshes? and if not, do physics objects only affect each other or can a regular rect() stop at an edge?
You have to apply them yourself, but it is pretty simple to do so. No, physics are in their own world. And you have to create floors and walls in there.
Notice my ellipse(self.player.position.x, self.player.position.y)? That is applying it to a shape
Sometimes it's easier to learn from a step-by-step tut than an example like the physics lab so I agree that there should be a good tut. @Vega 's mesh tutorial was illuminating, if someone can make a physics tut like that it would be great
@RichGala1, what do you say about us working together, learning about the physics function, and writing it up?
Sounds like a brilliant idea. Do it!
Sure, no college for a few days so we can totally work on that.
Hey, how do you have an
if
clause where you say that something is not equal to whatever it is your comparing?I thought it was
~=
but I don't think so anymore because it doesn't work.something like that (there was a bug)
I don't think destroy() deletes the variable, the variable is still a body, it just doesn't interact with its surroundings, so I think body:destroy() then body == nil should do the trick. Lemme guess, you are fixing the bug where if you tap an empty area it crashes?
yes :P
But for future reference, is there a way to do what I was trying to do?
Well, unfortunately, I have to go assist my aunt, so I may be unavailable for a while. (I could still operate off my phone, but no code would be tested. X()
I had a problem with the drawing speed for a game I was making. I got around it by drawing the tiles onto an image object, then displaying the image every frame instead of drawing each tile individually.
@floppy_gunk how much time did you get this way? Is it possible to grab the diplay buffer to copy it?
Meshes were actually the best way to go for my project as I needed to be able to destroy individual tiles
Do not create minecraft create a new game using more mobs and more items.
As in this junk jack hackd(2d minecraft)
Download link:
Hire is Sum sprites me and my frend rapped up yesadawe for this progete tested on a
hackd veshon of junk jack(2d minecraft)
Download link: Link Removed
wow that's a lot of stuff
I'll be sure to implement what I can as I progress
Hi guys,
Please don't post links to the Junk Jack art assets. They are copyright and the developer put in a lot of hard work to make them for his game. I've removed the link.
oop, busted. Lol, that's okay
No that's a my texture pack for my for my texture pack installer.