Steev's Forum Posts

  • 4 posts
  • Well thanks for the help, I figured there would be some expression or something simple I was missing.

    Thanks Ramones and Fimbul, I really appreciate it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey guys, just need a little bit of help on a game I've been working on.

    The whole point of my game is to take pictures of a night sky, and you're basically rewarded for a picture that has the largest amount of things in it.

    So I have randomly spawning meteors, stars, and a moon that follows a path. It's up to the player to try and time their photo correctly, and score the most points on it.

    The screen is divided into 9 sections, and the arrow keys navigate around these sections. When spacebar is pressed, a photo is taken, and this is where I would want the score to be calculated.

    The problem I am having is figuring how many meteors and stars are within the currently selected section.

    I've looked at this thread, but there's one issue. My overlapping object is not circular. If I were to use this, I'd get a lot of false positives on if the selected screen is actually overlapping a meteor or star.

    So basically, what is the easiest way to count up how many objects are overlapped by a rectangular object?

    Here's the game if anyone is interested.

    Thanks in advance.

  • well, thanks a lot.

    I feel quite dumb.

  • Hello to everyone, I just had one problem that I've been thinking about. I did a quick bit of searching (read the faq, read a few pages back in the forum) and while my reading list is definitely longer than it was before, nothing seemed to directly apply.

    The Problem: I am making a pac-man game for a class, and I wanted to add a lighting gimmick (like this). Essentially, a circle is centered around pacman, and with the more pellets he eats, the larger the circle grows. There were two solutions I came up with:

    Either have a rather large black image with a transparent hole in the middle (the 'bright' circle) centered on pacman

    or

    have the whole layout covered in a black sprite with a circle centered on pacman that makes the area enclosed within it transparent.

    I tried out the former solution, as it seemed to be the easiest to implement, and I got it to work. The only problem is that the image that is centered about pacman has to be pretty big, basically it needs to be around four times as big as the size of the layout. It works, but makes me worry about memory/system compatibility/etc.

    So it seems to me that the second solution would be best. Would anyone be able to point me in the right direction in getting it to work? I know how to set up the two objects that would be involved (the circle centered about pac-man and the black sheet covering the layout), but how would I make only a specific area of the black sheet become transparent?

    While I'm at it, I may as well ask if there are any simpler solutions anyone has in mind. Thanks for your time.

  • 4 posts