Richard Stennett's Forum Posts

  • Similar to what you just tried, try a small adjustment as a temp fix.

    If Object1.X > Object2.X + 5

       Object1.X < Object2.X - 5       Then set angle.

    I know construct doesn't always = an exact number when objects are moving, so set a small segway for it to use instead.

    Hope this solves the problem, or brings someone nearer an answer

  • Link to the a file in question.

    dl.dropbox.com/u/74175978/Helepcopter_Test.capx

    I've been trying to work this problem out for a while now to no avail for the past few days.

    I'm trying to build a simple helicopter design with something attached to it via a rope.

    In the example above I have had to remove all custom sprites and images, so I hope black boxes will suffice for now.

    As you can see the rope looks odd and doesn't stick to the helicopter.

    Any help you can suggest will be greatly appreciated.

  • Simple, on the event 'every tick', add another condition to the event that checks against the global variable.

    Should look a little like this

    Every Tick - Create Sprite

    Global variable < 10

  • Found the problem, uploaded the version to a web server and tested it on several machines in case it was an error on my console.

    Turns out the way the events where positioned inside of Construct was the problem.

    The move player function was 3rd on the start of layout where it should have been in the 1st position.

    Hope this helps anyone who may suffer a similar problem

  • So more information I have found that has confused me even further.

    I set up a key press that sends the player from the 1st Layout to the 2nd Layout.

    This method is working perfectly no matter how many times I go back and forth.

    Any idea's on why the clicking with a mouse button is causing issues when the event for clicking and keyboard press are identical apart from the difference between a mouse and a keyboard?

  • Having a major issue with changing a layout on a platform based game.

    I'm going to describe the problem as best I can as I am unable to upload the capx and I have been unable to repeat the problem in a new project so please bear with me.

    The player is set to a basic Platform behaviour with custom key movement.

    Layout 1 properties

    Global Variables

    PlayerX - 40

    PlayerY - 4000

    • Start of Layout - Set player position to (PlayerX, PlayerY)
    • End of Layout - Set Global Variable to players current position

    Layout 2 properties

    Global Variables

    NumberFall = 3

    • Start of Layout - Set player position to (60, 3000)
    • End of Layout   - Set NumberFall = 3

    Player is outside layout

    Numberfall is > 3              Set player position to (60, 3000)

    Numberfall = 3   - Change to Layout 1

    On the 2nd layout if the player falls outside of the layout then the player is set back to 60, 3000

    After the 3rd fall the player is sent back to Layout 1

    When the player re-clicks the link to return to the second layout the Player is being moved to the co-ords of 600, 600 and after it lands destroying itself.

    No where in my code is that set to happen.

    I really hope I've done enough to get some idea's from other people on how to solve this as I'm stumped.

    Sorry again for not being able to upload a bugged capx for people to look at.

  • Arrays?

    I wouldn't even know where to begin there lol.

    I'll start researching arrays and see if I can find a solution from there and I'll let you all know how I get on. Can only help if I post the answer to my own problem lol.

  • Again Thanks to Ugotsta for sending me the details for sending out my game as it stands.

    Bubble Game

    I hope this helps with viewing what I am trying to achieve. I have commented in all the sections to show what I am trying to do or what it is doing.

    All I have to do now is get the bubbles to pop when 3 or more of the same colour are connecting.

  • Thanks Ugotsta, but I'm already at this stage that you sent me. (destroying colours 1 on 1).

    I'm trying to achieve when 3 or more blue orbs connect, all connected orbs are destroyed. If 2 blue orbs connect then nothing happens and the game continues.

    Btw I like how you linked up the mouse to control the aiming range, I'm using keyboard controls but your method just feels easier.

  • try adding int.

    Every int(1) second

  • In this case I would do something like this

    Global Variable - Score = 0

    Global Variable - HighScore = 0

    Global Variable - IsRunning = 1

    Global Variable - Time = 30

    Everytick

    IsRunning = 1    Update TextScore = 'score: ' & Score

    this will update your scores

    Everytick

    Score > Highscore

    IsRunning = 1      set global variable HighScore - Score

                       Set Highscore - "Highscore: " & Highscore

    this will update your highscores

    Every (int)1second

    Is Running = 1 (-1 to Time)

    this will track how much is remaining, even if the game ends early

    (end of game) set IsRunning = 0

    you end your game set this to stop all the timers and scores from runnin

    This will save your scores including high score.

    Set text finalscore = highscore + Time(x10)

    Hope this makes sense, if not I'm sure someone could offer you a more clear version.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi this is my 1st time needing to post in the forums as I have found all the relevant information I have needed in the tutorials and forums. Thank you all in advance for any help you can provide in this problem :)

    I am a little unsure how to add my construct file so I will do my best to describe the problem and hopefully it will make some sense.

    I am trying to re-create a bubble bobble style game. (fire coloured balls and if 3 line up they are destroyed)

    Here's a link I grabbed from Google just to give you all the kind of game I am aiming to re-create.

    Bubble Pop

    I'm struggling to destroy the balls when they line up. I have created a local variable within the sprites and given them a value of 1 and upon collision with the same colour increasing this number but then my bubbles are popping when they shouldn't.

    Sorry again for a newbie style post and I hope someone understands what I am trying to achieve and is able to offer some help.