Opposite of endless climber

0 favourites
  • 7 posts
From the Asset Store
A collection of well organized sprites to build your own Rock Climber slot game
  • I am making a game in which the player has to endlessly go down breaking floors.But I am having many problems in it.

    The problems are as follows:-

    1)I need help on creating a block of code such that when the player WAS falling and has landed on a floor,I want to change the floor's animation and remove its Solid behaviour to enable the player to go down to the next floor.However the problem is that the all the tiles are changing their animation instead of that particular tile.

    2)I need help on making the screen scroll downwards whenever a floor breaks.I want to make the background image constant.I also need help in creating new instances of tiles at regular intervals.

    Please help me as soon as you can.

  • I saw your request on my Twitter but no link... please post a link to your question next time.

    For this, maybe you wanna show us your capx first so we can see what you did?

    I am heading to bed now, but to move the needle, you might want to also request assistance on Discord channel: https://discord.gg/Xuj5WgP

    Also, other people here, please help him.

  • [quote:3nkpfpai]1)I need help on creating a block of code such that when the player WAS falling and has landed on a floor,I want to change the floor's animation and remove its Solid behaviour to enable the player to go down to the next floor.However the problem is that the all the tiles are changing their animation instead of that particular tile.

    Use "Closest instance" filter in your platform decaying event. You have to tell Construct2 which one of the instances to act upon.. this is called "picking" in C2.

    [quote:3nkpfpai]2)I need help on making the screen scroll downwards whenever a floor breaks.

    Have you tried giving the player object the "Scroll To" behavior?

    [quote:3nkpfpai]I want to make the background image constant.

    Based on this I am assuming the background follows the player down.. give it the scroll to behavior as well.

    [quote:3nkpfpai]I also need help in creating new instances of tiles at regular intervals.

    Could be done many ways... you using physics or simulating gravity with bullet behavior?

    You using a long vertical layout and letting player actually fall or keeping player locked in center and simulating that "falling" with objects rushing up from bottom?

  • [quote:19kcqduj]1)I need help on creating a block of code such that when the player WAS falling and has landed on a floor,I want to change the floor's animation and remove its Solid behaviour to enable the player to go down to the next floor.However the problem is that the all the tiles are changing their animation instead of that particular tile.

    Use "Closest instance" filter in your platform decaying event. You have to tell Construct2 which one of the instances to act upon.. this is called "picking" in C2.

    Can you give an example of this in action? I'm working on a game build and I just learned about using the 'Pick Instance' event. So I want to know what other ways the 'Pick' event can be used. For my game I included having an object move towards another object with the least HP. I'm so proud of myself for figuring that out

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can the player break the floor at ANY spot?

    In one of my unreleased games i have tiles that the player has to jump on to break them

    (player is falling > play animation (block breaking) from beginning)

  • I think there's an "on landed" condition for the platform behavior, so knowing WHEN to do your actions should be doable.

  • Here is an example from another forum, it would work for you.

    [quote:1z5zcwtf]I solution to this could be something like this; each planet has a value called "distance". Run a For Each loop on the planets and set the distance value to the distance between it and the player( the expression for that is distance(x,y,x2,y2) ). Then merely use the "Pick Object With Lowest Variable" condition to get the one you want.

    Another easier option would be to pin an invisible sprite to your players feet that sticks down a bit below and then use an "is overlapping" AND "is falling (from platformer behavior)" event to choose the correct platform block.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)