WesleyDeveloper9's Forum Posts

  • Hello,

    I am trying to make my background become visible at the center of the screen but unfortunately, my background is only visible at the left side of the screen and there is a big white space located at the right side of the screen when I preview my layout. Can someone suggest me a solution so my background can be at the center of my screen when I preview my layout rather than at the left? Here's a picture so you can understand my issue:

    The appearance of my layout in Contruct 2:

    The preview of my layout with the big white space located at the right side of the screen:

    Tagged:

  • To Kyatric:

    Can you give me a link to Construct 2 Forum so I can submit help request at the proper place?

    Thank you!

  • To plinkie:

    The lives are still generating negative values. Earlier you were suggesting me to send you the file? I think that I will consider this option because I am wasting time on level 1 of my game for weeks now.

  • To Plinkie:

    How the variables and the text objects are supposed to work:

    Let's say that the "SpaceshipStrengh" variable equal to 10 and the "PlayersLives" variable equal to 3. Each time that the player's spaceship is touched by the laser ray of an enemy spaceship, the player will lose 2 "spaceship's strength" points from the "SpaceshipStrengh" variable. Each time that the spaceship's strength, reach 0 (zero), 1 Live is subtracted from the "PlayerLives" variable. If the "PlayerLives" variable reaches 0, the "SpaceshipStrengh" variable will also remain at zero and the player's spaceship will explode.

    The problem:

    Sometimes the Spaceship Strength displays a higher value in the txtSpaceshipStrength (the text object that indicates the number of strengths that the player's spaceship has), than in the txtLives (the text object that indicates the number of lives that the player have):

    Example:

    Spaceship Strength:8

    Lives: -5

    *Those values are impossible because you cannot have -5 lives (a value below zero) and still be alive and have a spaceship strength of 8. The number of spaceship strength only restores to 10 if the number of life is superior and not equal to zero. If the number of lives reaches zero, the number of Spaceship's strength values will remain at zero and the spaceship will be destroyed.

    I have submitted a picture of the issue so you can visually understand all the detail that I have explained in my post. Thank you for your time!:

  • To plinkie:

    The initial value for the "SpaceshipStrength" variable is 10, so you can remove 2 points from 10 until you reach zero. Maybe that problem is to maintain the zero value for the spaceship's strength when the player's lives reach the zero value. I wonder how I am going to do this.

  • I have created a code but it the code doesn't work properly. When I included the code, my intentions was the following: When the player's spaceship is touched by the laser ray of an enemy spaceship, the player loses 2 "spaceship's strength" points. If the "spaceship's strength" points reach 0 points, the player will lose 1 life (1 life will be subtracted in the txtLive object). If the number of lives reaches 0, the player's spaceship will expose.

    Unfortunately, my code doesn't work properly, please tells me what's wrong with my code. Here's my picture:

  • To klabundee:

    Thank you! It works!

  • I have included a code where the player can press "CTRL" to make his spaceship throw a missile. But when the text object (txtMissiles) indicate "Missile: 0", I want the player to not be able to throw missiles anymore. How can I realize that?

    This is a picture that represents what I did:

  • To klabundee:

    Thank you for your instructions, I have now a better result. But I just have a question: I have searched for the action "Spawn Laser at Enemy X and Y" and I never found it, I think this action doesn't exist.

  • Greeting Construct users,

    How can you make an enemy spaceship open fire repeatedly? This is a picture of my code and a picture of an enemy spaceship, give me some ideas so I can make the enemy spaceship move and open fire on the player repeatedly:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • To dop2000:

    I sent my file to Scirra but they were not capable to solve the problem completely so I have decided to delete my project and start it all over again. This is not a big deal because I was about to complete level 1 only. So you don't need to wait for my file I will not send it to you because I have decided to recreate the project again.

    Thank you for your help.

  • To dop2000:

    Ok, I have contacted Scirra support for that issue, if they can't help me out or if they don't succeed, I will send you my video game file (.capx file) at your email address (doperst2006@gmail.com) so you can repair it. I will contact you back when Scirra will give me an answer concerning my issue.

    Thank you!

  • To TheFaith30:

    I did what you told me and it's still doesn't work. I will contact Scirra if they can't help me I will accept the suggestion of a user who asked me to send the file so he can repair it.

    Thank you!

  • To dop2000:

    Wait I will make some verifications and if everything is ok I will send you the file of my game. Jus want to know something, if I sent the file of my video game, do I have to send the image of the objects and the background, the sound and music or just the Construct 2 file without all those files?

  • To DOP2000:

    I have a backup but it is also corrupted and make the same error message. How can I share the file with someone who can repair it? Do you have to send it at an email address of Scirra? Answer me as soon as possible!

    Thank you!