lionz's Forum Posts

  • If you want a simple true or false you can use 'array contains value' where the value is text.text. It depends what kind of data you are trying to pull from the array. Do you just want to know if it exists, or do you need to know its position?

    By the way instead of that global variable logic you can use 'loopindex' as the position in a loop, instead of l.

  • these are the recent changes : construct.net/en/forum/construct-3/how-do-i-8/breaking-change-mobile-advert-145087

    configuration was taken out at runtime you now set up at the start but looks like you've done this.

    there were a few posts recently about ads not working in production and live apps, but in test mode and on debug apk it was fine. not sure what the resolution was. I'm about to release my game to the store, i'll let you know if I see anything weird.

  • You can have an instance variable on the tree that adds 1 when you spawn a monster and when tree.variable=5, you stop the tree from spawning by using 'if variable less than 5' as a condition.

  • You do not have permission to view this post

  • The events are missing major parts of what I suggested. Where are the conditions? You can be moving left/right and 'colliding' with the bar. Also use set Y not set XY.

  • Did you use 'is overlapping' the bar? because you can still be overlapping it when you press S so it's stuck in a loop.

  • Yes object.count

  • Have a grab state, since it is player can be a global variable I suppose, a bool isGrab

    Player on collision with bar and isGrab=false, set isGrab to true

    On down key pressed and isGrab=true, set isGrab to false

    if isGrab is true, set player Y to ?, where ? is some value that makes it look like you are hanging from the bar

    Don't use pin, you can't move with pin...

  • You could set the player Y to specific value and add a grab animation. Then as you press left/right to move you keep the Y the same so it's like he is hanging. You give the player a 'grab' state, so when they press down while in grab state they will drop from the bar and return to normal platform behaviour (no fixed Y).

  • Set the bullet angle of motion. 0 for right, 180 for left.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Usually the title would be one text object and you set the text per layout so naming shouldn't matter, it would be called txtTitle or something.

    I can't tell if this is spam or a legitimate post

  • Nice one! I loved that game on the sega genesis. Would also scare the hell out of me.

  • You need to give the enemy 'states' which can be an instance variable. Based on the states you can set the animations but it is the state variable that is most important.

    In a function :

    Set enemy.state=idle

    Wait 4 seconds

    Set enemy.state=shoot

    Wait 3.6 seconds

    Set enemy.state=idle

    Wait 1 seconds

    Set enemy.state=patrol

    ---

    Enemy on collision with player AND enemy.state=patrol

    Set enemy.state=melee

    ---

    On animation melee finished : run function

    --

    This becomes more than a small problem when you have more than one enemy in the level.

  • It spawns all of the sprites before the function and then the function runs once. A better idea than for each here might actually be to use 'on sprite A created' : function. Because it will run for each sprite A spawned and correctly pick the sprite A information for the function.