So I've been working on a (non-smooth-)scrolling engine in my spare time at school and it mostly works the way I want it to so far. When you move in any direction and you're not on the edge of the map, it shows the next block, like in the screenshot (I haven't implemented collision yet). However, as you can tell, it works in every direction but up!
I haven't gone through and optimized yet, but I'm going to provide the code for the moving bit. I honestly can't tell why it's not working because the code for each conditional is exactly the same. Please help!
EDIT: If need-be, I can provide all of my code. It really has nothing special to it at the moment.
Should the 0 be more if you want to not go to the edge? (unless I'm reading the code wrong) Wait, what's the problem?
Last Edit: 09 February, 2012, 00:03:44 by epic7 »
Title Language Progress Status DrillMiner C (ndless) 35% Active ? C (ndless) 0% Unconfirmed Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
LabView (For FIRST robotics)
z80 ASM (Just a little bit
Yeah, I got it
I just needed to change
lol. Thanks, though!
I would actually love if you could provide the all the code for this. I want to get a (non-smooth) scrolling tilemapper up for my game Nulled, and this is EXACTLY what I needed. Thanks!
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus
Woah, sorry guys
lol. It's okay now though, I sent it to you both
I don't really venture into the routines thread because I want to find things out by myself. When I understood the basic meaning behind yunhua's smooth-scrolling engine, I decided to try my own one and haven't actually gotten around to fiddling around with it until recently (partly because I just finished Inheritance [awesome book, imo]).
Plus most of the mistakes I make are small silly ones and I eventually end up finding them.
I don't really venture into the routines thread because I want to find things out by myself.
makes sense. I try to learn stuff by myself as well
partly because I just finished Inheritance [awesome book, imo]