jcstranger's Recent Forum Activity

  • hey guys.

    i have quite some layers inside my layout so i decided to add an effect to the layout instead of every layer since this should be better performance wise.

    now i need to exclude one layer (HUD) from being affected by the effect.

    are there any other solutions besides adding the effect to any layer instead of the layout ?

    is it possible to exclude one layer from the layout effects or including another layout into the main one?

    thx in advance

  • so i finally figured out a solution that works for me.

    in my game there is endless content randomly generated and scaled to 0 (destroyed).

    besides, the player can also move stepwise (X pixel per touch)

    currently, every second one new object is generated that contains 4 obstacles that can collide with the player, then they scale to 0.

    what i do to solve the collision problem is that i set the new object and obstacle instance to a new layer every second.

    this makes up to 18 layers. now, when i move my player, is substract it by one layer, else it also adds 1 layer per second.

    this way i can check if the player position is on the obstacle position.

    if both variables (player and obstacle) have the same "layer" variable, i check for collision.

    i am not sure if this is a dirty solution performance wise, but it is at least very precise.

    thx again for helping

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hi mystazsea,

    thats a very detailed answer, way more than i was hoping for.

    I will try out your approach and let you know as soon as i have something (or not).

    thank you very much.

  • is it just the background that turns black or do you have a black screen on your mobile device?

  • Hey guys,

    I am currently trying to tell an object to only collide with another object if they are connected on the Z axis.

    This means that if another object is in between those two object on the Z axis, collision should not happen.

    Is there any practical way to handle this? Since I didn't find a nice solution yet I resize the collision polygons of the objects by frame depending on the position which is a very inaccurate and dirty solution.

    Any help is appreciated.

    cheers

jcstranger's avatar

jcstranger

Member since 12 Mar, 2014

None one is following jcstranger yet!

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies