Search found 64 matches
- Sat Nov 17, 2012 5:59 pm
- Forum: Support and Development
- Topic: Scanline fill? (flood fill / paint bucket)
- Replies: 10
- Views: 4206
Scanline fill? (flood fill / paint bucket)
(brush size isn't implemented yet so ignore that line in the menu // EDIT: also the right mouse button doesn't work when zoomed in, forgot to copy code, ignore that) So what I've got going is a basic painting thing. I thought I had a paint bucket/fill figured out - same as in mspaint, et cetera - bu...
- Tue Nov 13, 2012 9:24 pm
- Forum: Support and Development
- Topic: [Lua] Writing a "goto 10" loop?
- Replies: 4
- Views: 1360
Re: [Lua] Writing a "goto 10" loop?
Hah! Thanks.
- Tue Nov 13, 2012 9:00 pm
- Forum: Support and Development
- Topic: [Lua] Writing a "goto 10" loop?
- Replies: 4
- Views: 1360
[Lua] Writing a "goto 10" loop?
10: get some random numbers 20: check and see if those numbers exist on a table 30: if they do exist, do a thing 40: if they don't exist.. go back to 10 until they do Good ol' BASIC pseudo-code. What I have is a tilemap table, like so: map = { {1, 1, 2, 2, 1}, {2, 2, 2, 2, 1}, {1, 1, 2, 2, 1}, {2, 1...
- Wed Nov 07, 2012 10:29 pm
- Forum: Support and Development
- Topic: Drawing a pixel-y circle
- Replies: 2
- Views: 1490
Re: Drawing a pixel-y circle
Thanks! I'll spend some time parsing it.
- Wed Nov 07, 2012 7:20 pm
- Forum: Support and Development
- Topic: Drawing a pixel-y circle
- Replies: 2
- Views: 1490
Drawing a pixel-y circle
So I'm stuck on this. Let's say you want to make some circles on a tilemap. Specifically, circles shaped like these . I've successfully got squares and triangles going, using for loops that count though -ycount,ycount and -xcount,xcount, so if ycount is 4 and xcount is 2 you'd get a shape going -4,-...
- Tue Nov 06, 2012 11:06 pm
- Forum: Support and Development
- Topic: (resolved) White screen freeze/crash
- Replies: 3
- Views: 1462
Re: White screen freeze/crash
Okay, I figured out where I needed to both increase and reset my count. All sorted.
- Tue Nov 06, 2012 1:49 pm
- Forum: Support and Development
- Topic: (resolved) White screen freeze/crash
- Replies: 3
- Views: 1462
Re: White screen freeze/crash
I... guess not? ;p All I'm trying to make is 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 If I move that xcount incrementer up to the ycount loop (and, uh, set xcount back to 0 at the top; that was being tested and I forgot to switch i...
- Tue Nov 06, 2012 4:24 am
- Forum: Support and Development
- Topic: (resolved) White screen freeze/crash
- Replies: 3
- Views: 1462
(resolved) White screen freeze/crash
Line 133 is the cause. I don't know why. What I'm trying to do is make a ten-level equilateral(ish) triangle. The code is kind of horrible right now because I keep trying little things to get it to work. Written out in plain language, it should be doing something like: y1 x1 y2 x-1, x, x+1 y3 x-2, x...
- Sun Nov 04, 2012 2:30 am
- Forum: Support and Development
- Topic: (Resolved)Basic camera stuff (was: tile scrolling problem)
- Replies: 6
- Views: 1812
Re: (open)Basic camera stuff (was: Basic tile scrolling prob
Santos: thanks, that at least makes this appear right. I'm curious as to why it's going to 26 when I think it should only go to 25, but I'll diagram it out so I understand.
- Sat Nov 03, 2012 9:31 pm
- Forum: Support and Development
- Topic: (Resolved)Basic camera stuff (was: tile scrolling problem)
- Replies: 6
- Views: 1812