Glorpy's Recent Forum Activity

  • GameThirsty Yeah that is kind of like what I want, let me explain better. I would like that object (ball in this case) to bounce off of the top wall and then go down to the bottom wall, and bounce off of that. Think of the flying koopas in Super Mario. They have a set thing where they will go down and up, but in my case id like it off of a wall.

  • GameThirsty I did that yes. And it just falls. That's it. Could you please explain how I can make it bounce?

  • Hey guys! I just wanted to let you know that I have read the tutorial for the platformer by Ashley. The thing about that tutorial is that it only shows how to go left and right. The thing I want to do is make it go up and down. I am making a puzzle/maze game. And on the 11th level I want there to be something that bounces off the walls at a decent speed to give the player a bit of a challenge.

    Here is what I had for my code keep in mind that "movement" is my instance variable.

    deathWallMove movement = "up">deathWallMove Simulate platform pressing Jump

    >deathWallMove set Not Mirrored.

    Also in the game the block goes down but will not bounce because the only options are left and right. My game is apparently too large to upload so I hope someone understands what I am trying to do.

    TL;DR Trying to make an object bounce up and down after hitting a wall

  • I'll try that, thank you very much!

  • Sorry if it sounds like a silly question but I want to make a button that when you collide with it's side it will go halfway into the wall and make a "button pressed" sort of sound. I will show you what I mean in my game. Go to level 2 and it will be a blue square. The blue square that is more out is what I want it to look like unpushed, and the other one is what I want it to be when it has been pushed

  • Yeah that works really good. The only thing is, is you took out the coin respawning and I am not sure how to get it back. I would still like it if you were to die that you lose a point in score and the coin respawns in the level. The main problem is gone which is the score is being saved upon beating the level and it won't go down if you die. Now the only thing is, is that what if there are two coins in the level? How would you make the score go down by 2? when you die on a level with 2 coins?

    Once again sorry for bothering you so much. I have read the manual and I have followed multiple tutorials. I am still learning.

  • The problem is though is lets say on level 3 there is a coin you collect. Before you collect it your score is 0/30 right? So when you do collect it, logically it is 1/30. Now lets say you beat that level and you score is 1/30. Now lets say again on the next level you die with that score of 1/30. Then your score would be 0/30 and I don't want that. I want it to be saved on the layer. Because you can't go back to that level and get the coin again.

    Basically what I am saying is once you grab that coin on level 3, i want the score to be saved on the next layer. but I am unsure of how to go about that.

  • I'm not sure if I understood correctly. I've added an instance variable that checks if you have the coin or not. So if you die and don't have the coin, nothing happens to the score, and if you die and you have the coin, subtract 1 to the score.

    Tell me if this is not what you wanted and try to explain it again.

    By the way, you are using too many sprites and the system has to check a lot of collisions which is not good for performance. Instead of using a lot of small sprites, use the Tiled Background object, that way the system will only have to check very few objects.

    Thanks again for the reply Xaiver. Let me clarify it better for you because it is really confusing to explain.

    So think of it like this. You start the level. You grab the coin. Your score is now 1/30 because you have 1 of the 30 coins in the game. Now lets say you go to the next level of the game with the score of 1/30 and die to something. Your score would go to 0/30 and you couldn't go back to get the coin. What I am trying to say is, is there a way to save the 1/30 after completing the level?

    Or if you possibly can, make it so when you get the coin it doesn't respawn and your score is saved as 1/30. Thanks again for your help, I have been stumped on this.

  • Hey there Xaiver. Thanks for the reply. I actually managed to make it work and I have a different problem now. Currently when the player gets a coin 1 point gets saved into score. Now I want that score to minus when the player dies on that level, but if he dies again on the same level I don't want the score to go into the negatives. I'll show you what I mean.

    So start on level 3 if you can. Basically when you get the coin it adds 1 to the score. Now, on that same level if the player dies I want the score to be reset to 0 so he can try again. But lets say for example he completes the level and gets the coin. His score would be 1 going into the next level. Now if he dies on level 4 I don't want the score to be touched because the player already got the 1 from the last level. It is really hard to explain and I hope it will make sense when you play.

  • Hey there guys. I am making a game and I am wondering how to spawn an object on top of another object that is in another layout. What I basically mean is that I want to have a spawn platform on every level, and each time the object completes a level it will spawn on top of the spawn platform. So I am wondering how to make the object spawn directly in the center of it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Awesome! That worked! Thank you very much.

  • Hey there guys. I recently got Construct 2 and I am having a blast with it so far. It is way better than Game Maker. My question is, is that I have an object and basically when this object collides with another object (teleporter) it transports them to the next layout (level) My problem is that in my event sheet I am putting the following and it is not working.

    When Object 1 collides with Object 2 > Go to Layout 2

    > Create Object 1 on layer 0 at (223, 30)

    So basically my question is how do I make it so the object actually spawns into the next level and still retain all the same properties (i.e moving, jumping etc)

    EDIT: I forgot to mention that it does go to layout 2 fine and then it spawns Object 1 for like half a second and then it disappears.

    EDIT2: I tried making Object 1 Global. But when I do that when I go to the next layout there are two of them in random positions. And they don't move at all.

Glorpy's avatar

Glorpy

Member since 7 Nov, 2014

None one is following Glorpy yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies