#1: Yep, the "blank" sprite trick that was mentioned.
#3: In such a case, it depends on the structure of each section/room/etc.
#1 OK. I missed the terminology. But for most games, the number of off-screen sprites that needs collision with wall should be one. Just the player. The rest can be activated with the on-screen one.
#2. Yes.
#3. Hmmm. Why not use the tile meta-data to pull the collision box data? Or is that what you meant? Suppose you need to collide with wall. With manual checking, you need to not only pull all the relevant data, but to check the range as well. I would think that SPHITRC is a convenient way to check collision boxes? Intersecting rectangles and all that? Or I may be missing something. Oh, well. I'd better do research on this thing. Thanks for the head up.
#1: Yep, the "blank" sprite trick that was mentioned.
#3: In such a case, it depends on the structure of each section/room/etc.
#1 OK. I missed the terminology. But for most games, the number of off-screen sprites that needs collision with wall should be one. Just the player. The rest can be activated with the on-screen one.
#2. Yes.
#3. Hmmm. Why not use the tile meta-data to pull the collision box data? Or is that what you meant? Suppose you need to collide with wall. With manual checking, you need to not only pull all the relevant data, but to check the range as well. I would think that SPHITRC is a convenient way to check collision boxes? Intersecting rectangles and all that? Or I may be missing something. Oh, well. I'd better do research on this thing. Thanks for the head up.
I guess I should give a different example by how I deal with collision. Recall games like Lemmings where they can react to individual pixels? Basically, the "tile-space" I'm referring to is representing each tile as a single element in a 2D array, much like how the collision areas are in Lemmings. So, each 16-16 pixel tile is a single pixel by comparison. Unlike Lemmings, however, these "tile-pixels" are 16x16 pixels big rather than 1x1 pixels, and by converting coordinates I need for collision checking to tile-space, I divide the coordinates by 16, making for a lot less checking for collision. Since accessing arrays forces flooring of values, I won't have to do that myself.
That is what I did with the first demo. The second demo made a lot of changes in terms of collision that increased efficiency, running off the same logic as I spoke of above, but doing it in a different way with a 1D array instead, and not having to convert the X coordinate to tile space with a nasty divide sign. It also improved my background updating method, so it was win-win for me.
Discostew
3DS Friend Code: 4425-1477-0127 | Nintendo Network ID: Discostew
(snip)
That is what I did with the first demo. The second demo made a lot of changes in terms of collision that increased efficiency, running off the same logic as I spoke of above, but doing it in a different way with a 1D array instead, and not having to convert the X coordinate to tile space with a nasty divide sign. It also improved my background updating method, so it was win-win for me.
Yeah. Whatever works. I just realized that for grid based platform, snap-to-grid is better. And with random distance, a simple comparison is better than my previous algo, so never mind that. I was wrong. Just too tired now, I guess.
First off, you did a wonderful job with Klondike. I'm rather impressed (and yes, I switched the card type to Megaman )
Lol, I bet. For some reason I had it at the triforce.
I stopped myself from an X port, btw. (I myself could hardly believe I could, I barely know this)
And as you talked of... somewhere, GBA? I hardly would think that the GBA has open source apps.
I'm probably sounding like an idiot, but what does IRC mean?
If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.
Oh. Well, in that case, @GeekDude on the Petit Computer Wiki, there's a live chat there.
If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.
Forums
Topic: Petit Computer
Posts 6,101 to 6,120 of 9,620
Please login or sign up to reply to this topic