WesleyDeveloper9's Recent Forum Activity

  • To plinkie:

    A) You are saying that my background is not beautiful enough? Do you know where I can get a background with a better appearance? If yes tell me.

    B) Can you give me an example of a code that will allow me to prevent an object to access the white area at the top of the screen (an x,y coordinate)?

  • Greeting Construct 2 users, I have two issues:

    Problem 1:

    I have included the DragDrop Behaviour to my spaceship sprite. I have placed codes in the Event Sheet that makes the spaceship shoot when the player drags the spaceship in the screen. But unfortunately, the code is not working (the spaceship is not shooting when I am dragging the spaceship). Can you tell me what's wrong with my code, by observing this picture?:

    Problem 2:

    When I preview my game and I drag my spaceship to the top of the screen, I can reach an area where there is no background and the background is white. Can you give me a suggestion to remove this flaw in my game?:

    This is the code that allows the background to scroll and repeat endlessly the image in the background:

  • Ok Thank you I have solved the problem.

  • To Lancifer:

    Do you think that it's possible to reduce the visible area (dotted lines)?

    Thank you!

  • To Lancifer:

    How can I stretch the layout to fit over the dotted-line box? Tell me the steps I have to follow.

    Thank you!

  • Try Construct 3

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

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

    If you observe the previous images that I have submitted, my image is already over the layout but when I preview my layout the image appears at the left side of the screen. I was wondering how I can make my image appear at the center of the screen just like this picture for example:

  • 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:

WesleyDeveloper9's avatar

WesleyDeveloper9

Member since 26 Nov, 2017

None one is following WesleyDeveloper9 yet!

Connect with WesleyDeveloper9

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies