Search found 5 matches

by BetaBlaze
Sat Jun 14, 2014 8:13 pm
Forum: Support and Development
Topic: Cutting a Drawable image
Replies: 8
Views: 5707

Re: Cutting a Drawable image

Scratchthatguys wrote:Textured quads seem like the way to go. Good luck with your game!
Yes, I agree.
I've managed to make use of the scissor in love.graphics to render some other stuff in my game, but it definitely looks like I'll be using quads for ladders and other textures.
by BetaBlaze
Sat Jun 14, 2014 8:10 pm
Forum: Support and Development
Topic: Grid Placement of Physics Objects?
Replies: 6
Views: 4961

Re: Grid Placement of Physics Objects?

I know how to delete them, but do I really have to iterate over all the objects to find which is at those specific coordinates? Pretty much. You can store all your objects into a table, with a Position property. local block1 = ... block1.Name = "SpecialBlock" block1.Position = {64, 128} -...
by BetaBlaze
Sat Jun 14, 2014 1:45 am
Forum: Support and Development
Topic: Cutting a Drawable image
Replies: 8
Views: 5707

Re: Cutting a Drawable image

Yes, that is exactly what I am trying to do. I might draw the ladder manually using love.graphics.rectangle instead of using an image then. Basically, my ladder image is 50px by 50px. In-game, if I have a 50x200 ladder, I'll have no issue tiling my ladder image, but what about a 50x220 ladder? The ...
by BetaBlaze
Fri Jun 13, 2014 4:28 pm
Forum: Support and Development
Topic: Cutting a Drawable image
Replies: 8
Views: 5707

Re: Cutting a Drawable image

Maybe you could draw an example in Paint or similar. I can't help you if I don't know how it's supposed to look. I assume it's supposed to cut the ladder off at the exact height it stops at in case it exceeds the exact image. In my opinion, if this is what you're trying to do, you might want to mak...
by BetaBlaze
Fri Jun 13, 2014 3:35 pm
Forum: Support and Development
Topic: Cutting a Drawable image
Replies: 8
Views: 5707

Cutting a Drawable image

I'm adding ladders into my game. Since my game allows people to construct ladders of various heights, I need to be able to tile the ladder image vertically until the ladder stops. This is simple, except I need to also be able to cut off the ladder image if it exceeds the height of the ladder. How ca...