#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

# I need help making a faster way to draw this...

2»

• Posts: 371

Aaah. :-) I was going to suggest using the char.png file in the minecraftpe.app folder or (if this works) go here

• Posts: 68

Holy crap!!!! Man, I told myself I was going to sit down and learn about the physics engine one day! Tht's freakin' awesome!

• Posts: 371

I barely know it! Who thinks someone out there should write a tutorial on it?

• Posts: 68

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?

• Posts: 371

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.

• Posts: 371

Notice my ellipse(self.player.position.x, self.player.position.y)? That is applying it to a shape

• edited August 2012 Posts: 68

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

• Posts: 371

@RichGala1, what do you say about us working together, learning about the physics function, and writing it up?

• Posts: 2,161

what do you say about us working together, learning about the physics function, and writing it up?

Sounds like a brilliant idea. Do it!

• Posts: 68

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
``````

something like that (there was a bug)

• Posts: 371

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?

• edited August 2012 Posts: 68

yes :P
But for future reference, is there a way to do what I was trying to do?

• Posts: 371

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()

• edited August 2012 Posts: 24

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.

• Mod
Posts: 3,297

@floppy_gunk how much time did you get this way? Is it possible to grab the diplay buffer to copy it?

• Posts: 68

Meshes were actually the best way to go for my project as I needed to be able to destroy individual tiles

• edited September 2012 Posts: 154

Do not create minecraft create a new game using more mobs and more items.

As in this junk jack hackd(2d minecraft)

Hire is Sum sprites me and my frend rapped up yesadawe for this progete tested on a

hackd veshon of junk jack(2d minecraft)

• Posts: 68

wow that's a lot of stuff
I'll be sure to implement what I can as I progress

Posts: 5,613

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.

• Posts: 68

oop, busted. Lol, that's okay

• Posts: 154

No that's a my texture pack for my for my texture pack installer.