Nickydude's Recent Forum Activity

  • Thanks.

  • Is there a way for an included event sheet to know which layout it is on?

    I've created a menu system (with pressed buttons) using an event sheet to be included on all layouts. I would like to be able to have the image of a pressed button depending on which layout is active.

    For example if on layout one then the first menu item will show a 'pushed button' image whilst all the rest will not whilst if on layout three then the third button will be pressed.

    tldr: I want to pass what layout is active to an included event sheet.

    Any help appreciated.

  • I know how to swipe (on an Android Nexus 7) to move from one layout to another (thanks to jagoman: ), but how do you 'show' the transition? At the moment it just flicks between the layouts. Is there any way as one layout slides to the left the next layout slides into view?

  • Problem Description

    Playing the RTS Template game that comes with C2 (r164). Last player tank object destroyed when the error below occurred.

    Attach a Capx

    No need, it's the RTS Template that comes with C2

    Description of Capx

    Suddenly got this error:

    Stack trace: 
    assert2@http://localhost:50000/preview_prelude.js:12
    Parameter.prototype.get_familyvar@http://localhost:50000/eveng.js:2037
    Condition.prototype.run_object@http://localhost:50000/eveng.js:1290
    EventBlock.prototype.run@http://localhost:50000/eveng.js:787
    EventBlock.prototype.run_subevents@http://localhost:50000/eveng.js:915
    EventBlock.prototype.run_actions_and_subevents@http://localhost:50000/eveng.js:854
    EventBlock.prototype.run@http://localhost:50000/eveng.js:807
    EventBlock.prototype.run_subevents@http://localhost:50000/eveng.js:915
    EventBlock.prototype.run_actions_and_subevents@http://localhost:50000/eveng.js:854
    EventBlock.prototype.run@http://localhost:50000/eveng.js:807
    EventSheet.prototype.run@http://localhost:50000/eveng.js:187
    Runtime.prototype.logic@http://localhost:50000/preview.js:2045
    Runtime.prototype.tick@http://localhost:50000/preview.js:1721
    Runtime/this.tickFunc@http://localhost:50000/preview.js:446
    [/code:1a2mt4o9]
    [b]Steps to Reproduce Bug[/b]
    [ul]
    Play the RTS template and get all player tanks destroyed. No changes made.
    [/ul]
    [b]Repeatable?[/b]
    Yes
        
    [b]Affected Browsers[/b]
    [ul]
        [li] FireFox[/li][/ul]    
    [b]Operating System[/b]
    	Windows 7 Home Premium 64-bit SP1
    [b]CPU[/b]
    	Intel Core i5 3330 @ 3.00GHz	34 °C
    [b]RAM[/b]
    	8.00GB Single-Channel DDR3 @ 665MHz (9-9-9-24)
    [b]Motherboard[/b]
    	Gigabyte Technology Co., Ltd. H61M-DS2 DVI (Intel Core i5-3330 CPU @ 3.00GHz)
    [b]Graphics[/b]
    	2047MB NVIDIA GeForce GTX 660 (ASUStek Computer Inc)	32 °C
        
    [b]Construct 2 Version ID[/b]
    r164
  • Lol! Sounds like you're having fun!...

    "Ahh.. I have this problem...."

    "Wait, no I haven't..."

  • Glad you got it solved but beware that if you have different blocks with different attributes, e.g: sprBlock, sprDoubleHitblock, sprPowerDropBlock, sprTripleHitBlock, and so on then you'll have to have something like:

    if
      sprBlock.count = 0
    and
      sprDoubleHitblock.count = 0
    and
      sprPowerDropBlock.count = 0
    and
      sprTripleHitBlock.count = 0
    ...
    and
    ...
    then go to next layout[/code:2k2znn8w]
    Better to put them all in one family to make it easier.
  • It just so happens I'm making something similar! You can take a look here: http://www.madladdesigns.co.uk/game/invaderoids.

    To change levels when all blocks are gone: place all the bricks in a Familiy (e.g called 'bricks'), and use bricks.count = 0. That's how i do it.

    you can include other event sheets into one. I've created a Player Event Sheet which holds all the bat and ball movements which i then include into all the other event sheets.

    Hope that helps.

  • Thank you Yann!! I Have a maze type game that moves in blocks but was having trouble checking if there was a free space in the direction of movement, you've just solved that!

  • Example:

    When moving right:-

    player.x = player.x + (number of pixels)

  • Took me a while to find Global as the panel is made of different sprites but eventually found it and it works. Thanks plinkie, your help is very much appreciated.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm having a go at creating a Breakout clone and it's going well but is it possible to have the same Overlay over different levels without duplicating it on each level? Here's the Overlay:

    [attachment=0:2wvmd7ei][/attachment:2wvmd7ei]

    This could change as the game progresses so I don't really want to try to change the Overlay's on all the levels trying to line them up etc, and any small change means I need to go back and change them all again.

    So is there a way to create one Overlay that can be used on many layouts?

    I did a search and came up with something called Inheritance Layers but that was for CC. Is there anything similar for C2?

  • Just come across this and it's great! just what I'm looking for but how do you position the 'rotating planet'? It always seems to be in the bottom left and how do you remove the black square behind it?

Nickydude's avatar

Nickydude

Member since 20 Jan, 2011

None one is following Nickydude yet!

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies