d5c053f8-0f3a-4ffa-a51f-b3495ea9b652's Forum Posts

  • Ok that works. Many thanks. Two follow up questions:

    1.) How would I stop the player bouncing a little when it comes into collision with the red collision blocks?

    2.) Where is the pin behaviour, I can not see it anywhere on my add behaviour dialogue?

  • Tried all that still, don't work, I found various tutorial on it for a 2d platformer but not for pushing it in all four directions, as in top down view which is what I am trying to achieve.

  • As per below screenshot how do I make it so when the player collides with the block, depending on which side, e.g. North, South, West, East that the player collides on it then starts moving the block in that direction? Tried all forms of movement behaviour except physics as could not figure out how to stop it falling off screen. The image is the closed I got it but only able to push the block at point West.

    URL incase above don't work: http://picpaste.com/Untitled-cmj9EulG.png

  • I think I am going to tidy up my code on Level 1 and make it less conflicting then do a seperate event sheet for each level.

  • LittleStain:

    Well it seems I don't understand anything.. Nah my event sheet is beginner, I would appericiate if you could show me or point me in the right direction of how to layout a construct 2 project?

    The bullets seem the same image, the enemies seem the same image, the different walls seem the same image..

    There seems to be no need to use seperate events with (almost) exactly the same actions attached..

    For me it makes the event-sheet unreadable..

    I agree with you on this hence the above question, I think I need to create seperate event sheets and seperate items to avoid less conflicts.

    Would it help to set Timer to 40 before the wait action? Tried this and it had no effect.

    add a wait 0 action after setting Timer? Done this and it had no effect.

    Roal465

    I am using same event sheet. Initial value for player health is 100 and I set it to 100, could that be where its going wrong?

  • I don't want anyone to fix my entire code, I am still a beginner here, just looking for some guidance on what is wrong exactly?

  • Roal465: No it is definitely not, Level 2 is.

    LittleStain:

    Do you use this same event sheet for all layouts? No only when the events are similar e.g. levels 1 to 3 have the same events in them just different level layouts.

    If not where is the event sheet for the layout where things go wrong? I do not understand what you mean by event sheet for things going wrong?

    Why are there different bullets for all directions? Because that was necessary for my gameplay that I was aiming for.

    Why is there an enemy updown and an enemy sidetoside, who look like they use the same image, only turned? Because one shoots out left and right and the other shoots up and down.

    Why are there so many exactly the same actions, wouldn't using "or" blocks or functions be much better? What do you mean specifically by same actions. I have no idea what or blocks are in terms of construct 2 events.

  • So first the problem, as per line 50 in the below image whenever I go to the next layout (level 2) then starts with nothing but the player and a very basic level layout, no enemies, nothing! However the timer and health (set as an instance variable rather than a global one) both reset fine, hence as per lines 47 to 49 I can not see what after 3 seconds is causing it to go the game over layout screen? Something is destroying my player but I can not figure out which line of code? I have tried deleting and adding in all sorts? I have a theory that somewhere in the code its causing my Global variable Timer and my instance variable PlayerHealth to go from current state in Level 1 to New state in Level 2 which is 100 and then changes to ZERO somehow hence destroying my player and sending me to the gameover screen which should only be happening when the timer reaches zero or the playerhealth reaches zero. I have been at this 5 hours trying to figure out whats wrong is driving me insane.

    Image can be viewed at: http://picpaste.com/pics/Jm8VNF2f.1432920448.png

  • Many thanks works perfect what you said, I also noticed I changed my variable to 40 but the max of the progress bar properties --> value was still set at 30.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Also I have tried setting it to just "1" second rather than "1.0" seconds still the same problem.

  • As per the below image the progress bar does not seem to start counting down right away, it takes way more than one second, would say about 5 seconds, its at the beginning of my code and I can not figure out what is wrong?

  • Ok thanks think I have got it now.

  • Ok so everything has been solved apart from: animation dialog where do I find this? Looked everywhere?

  • When you say two actions you mean events?

  • I did that, it did not work?