procrastinator's Recent Forum Activity

  • Ahhh THAT game. I remember checking that out when I was getting back into Construct after months of not touching it. Nice game! It'll be sweet seeing this actually applied in your game.

    Just checked out the new LOS version. Very nice and accurate.. even at the slightest gap but it's around half the speed of your previous version. So it's gone from 1200fps from the previous version to 600-800fps for this version here. That probably doesn't make any difference, as long as it runs smoothly on a lower end machine. If it's accuracy you want, then sometimes you have to sacrifice a little speed I'm curious how it'll perform on so many swarm cells though.

    I wasn't around yesterday (well only in the morning and that was brief) so didn't get anything done at all... but had a few thoughts. Based on your intitial LOS system, I thought of a way to optimise a bit.. I think by checking the angle from the lightsource to the obstructions (circles) and the angle of the player object, we can check if the player's angle is within a certain range close to the obstruction's so we only need to cast rays from that obstruction's edges. Don't know if that makes sense, as it's just in my head atm so hard to explain. I'll see if that works...

  • Yep. Crashed on me. Try checking what you changed since your last working test. It may be trying to access something that doesn't exist - a file perhaps?

  • It's obviously not too slow.. I meant it's slower. Anyway, a few further tests of my own and I couldn't get it much faster than yours with that accuracy. I've just tried a "point in poly" routine but it didn't work. Too tired.... but I think that'll be the fastest method if I can get it working...

    This shadowcaster will be very handy for many things when it's fully working. I have a few plans for it but those are a long way off

    What's the game you're working on btw? Sounds like a 2D Thief game or something.

  • Whoa I thought the original post was bad but those yahoo answers revisited almost made me choke!

  • hmmm good point! I didn't think of it being a more flexible approach actually

  • "Your machine will self destruct in 30 seconds if you don't follow these instructions" may get their attention

  • Yeah that'll be great if he fixed it. I didn't even know it existed until he posted. I should read the wiki/docs more!

  • That's a nice method but it's flawed unfortunately. It's too slow (halves the framerate here) and if you move the lightsource to behind the very bottom left circle the object isn't hidden anymore. Almost there... probably needs a little tweaking to get it right.

    I'll get this damn clipping done today and then I'll put a bit more time into this problem.. hmm..

  • Now the fun begins

  • Not too bad but yeah.. too laggy to do anything serious.

  • Strange.. but I guess something's changed in the new version that you're using?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Some nice looking stuff guys. Very inspiring.

procrastinator's avatar

procrastinator

Member since 29 Dec, 2008

None one is following procrastinator yet!

Connect with procrastinator

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies