Kong Ming's Recent Forum Activity

  • So here's what's up...

    I'm making a top-down spaceship game (e.g. asteroids) and at the center of my layout is a big, shiny star. On a separate layer above it is a misty space-dust tiled pattern that the ship flies behind. At the star's position, I've used a spotlight on the dust layer just like in the lighting example project to make the space-dust disappear since it looks weird in front of the star. Since I use "Force own texture", this all works just fine. Here's the problem. I've also tried to add another layer with more space-dust, but a larger parallax to create a nice sense of depth to the cloud. Is there any way to make whatever part of that layer is over the star also transparent? If I try to do "force own texture" to that layer as well, the clear spot on that layer moves around above the star because of the parallax difference. I've tried using the Pin behavior to keep the spotlight on top of the star but that doesn't seem to work either. Basically, I want a transparent hole through several layers at the same position but not all of the layers, and I want it to be in that spot regardless of layer parallax differences. Any ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for taking a crack at it, I'll check it out!

  • I couldn't find a discussion on this which I thought was strange, so maybe I'm missing something obvious. I can see how it would be easy to create a user-defined set of keybindings using the LastKeyCode expression. But how would I go about allowing the user to bind specific actions to a mouse-click? The only solution I can think of, which is very messy, is to have many redundant event groups, only one of which is active at a time. Thanks for the help!

  • I've encountered the same problem and was wondering if anyone has a solution. I get what Ashley is saying about center of mass, but I don't see how you can apply force to that point since you only seem to be able to apply force to image points and not expressions, which wont be exactly on the center of mass for irregular collision polygons. I saw in the update notes for r61 that setting it to a physics-object's origin does it to the center of mass instead, but this doesn't seem to work for me. Does anyone have more info about this?

Kong Ming's avatar

Kong Ming

Member since 16 Mar, 2013

None one is following Kong Ming yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies