shadowedsol's Recent Forum Activity

  • Health Recharge problem

    I created a code where if the player is taking damage the health is reduced. Once the player has stop taking damage the health will wait 4 second and then recharge. I set this up with a Boolean operation which seems to work, however if the player takes damage while the health is recharging the health continues to recharge. If I set the Boolean back to false it doesn't recharge/it counts 3 point and stops???

    The 3 also comes in later if the health reach 100 it should stop counting however it will go for an extra 3 health points/seconds? (the 3 will change if every 1 second is changed to like 0.005 seconds)

    I am thinking it has to do with wait 4 seconds (the system counts while it waits)

    I did set a statement that forces the health to stay at maxHealth (100)

    My layer effect problem.

    At 25% health I want a layer 2 to fade in. It works fine however it is suppose to have an additive on the layer. If the health goes below 0 then the layer additive effect can be seen, just during the fade in it doesn't work. I am trying to avoid using a full size/screen transparent png (the file size would be bigger then I like).

    This is my first attempt at coding in Construct so there might be a better way of doing it, that I am not seeing/don't know about.

    dl.dropbox.com/u/5773521/recharge_health_q2.capx

    Thanks for you help

  • Super simple. Click on the project tab, under layout create a new layout (default = Layout 2) then setup a collision detect or anything you want to complete the level (timer etc...) in Layout 1 and then go to the events sheet and set the system go to layout "Layout 2" once you have hit the collision/time ran out...

    Here is a real quick version. Level change on the ball falling out of layout 1 then layout 2 launches.

    Basics level change

    Here is a more complex tutorial on saving variables...

    How to series - 'In Game Shop'

  • Thanks for the tip, I found a few more examples.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This might be a bug, I am new and don't really understand how everything works yet.

    My problem is the bounding box on the platform is set to rotate with the layer using left/right/up/down which is does. You can see it with the red box falling on to the platform as the platform rotates. However the ball that is on another layer falls to where the platform first starts and doesn't fall if the layer/platform has been removed from under it.

    Best way to see it is hold down the right arrow key and refresh the browser window.

    BoundBox Issue

  • Yep I get it now, I just didn't see the relationship of the X1,Y1. Awesome thanks for the answering the question. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Nevermind I got it to work thanks to Weishaupt post

    Center to Viewport

  • This is my first time using Construct 2 and I am having trouble understanding what is going on.

    First what is the point in having to set 2 points.

    angle(sprite2.X,sprite2.Y, center.X, center.Y)

    I understand you need two points to create a circle, center point and distance but it doesn't seem that the position of sprite 2 makes a difference since the whole layer should be rotating.

    Next Question is I am having a problem with the angle jumping when swithcing from left to right (or right to left) movement. It jumps several degrees instead of a nice clean 1 degree. If you tap the right/left button it sometime will be 5 to 20?. Not sure what is going on. (There is probably a better way to set the angle instead of a counter)

    Problem with Rotation

    Version 2 center point.

    Thanks for your help!

shadowedsol's avatar

shadowedsol

Member since 3 Oct, 2011

None one is following shadowedsol yet!

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies