LittleStain's Forum Posts

  • I think I set up my DropBox correctly..

    Please let me know if you can't download.

    https://www.dropbox.com/s/8qpe14n6lw2ty ... .capx?dl=0

    Thank You.

    What should we see with this capx?

    I only see a ball rolling down a hill and dissappearing on the right side of the screen after jumping a ramp..

    There aren't any events, so there is no control over the ball..

    How is it supposed to roll up the hill and when?

  • Also instead of is touching using on touched would only call the function once..

    And ofcourse you could do it without a function and just set the variable to : floor(random(0,4))

    You could check the variable by adding a text-object and setting it to: enemyCard

    After testing this text-object could always be removed..

  • random(0,3) can also give the value of 2.34, which you don't want..

    in this case I would just use choose(0,1,2,3) but using floor(random(0,4) would also work..

  • Sometimes something happens?

    When does what happen?

    he stay fixed at the screen means that the player doesn't move?

    Is the player overlapping something?

    Are you using the collision polygon of the animated player for the physics or do you have a detection sprite?

    Could the issue be that the collision polygon changes and as such the player suddenly overlaps the platform and gets stuck?

    A capx with just an example of the issue would help a great deal..

  • I usually control-A select everything on the layout and copy it into my game and then control-a select all events and copy them to an event-sheet of my game..

    sometimes things are referenced that aren't on the layout and some names and or variables should be changed or created, but it beats the hell out of manually typing everything..

  • System every 2 seconds

    • enemy play shooting animation
    • enemy spawn bullet..

    bullet on collision with wall

    • bullet destroy

    enemy on shooting animation finished

    enemy play animation idle

    to shoot in a straight line either set the bullets angle of motion to 0 (right) or 180 (left) degrees

    now the only question left is how often the enemy has to reload..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That doesn't really help me at all (^-^;)

    Well if you could explain better what you want, it would be easier to answer your question..

    It sounds like you want your enemy to shoot at time intervals, so that's what I explained..

  • Nimtrix How to check for inverted conditions ?

    right click the condition and choose invert..

  • Something like:

    Every x seconds

    enemy spawn bullet

  • Something like this?

    player is overlapping water

    on jump pressed

    swim

  • Glad I could help.

    Good luck with your Game/app!

  • Copied from the tutorial Arrays for beginners

  • Why not just use a global variable instead of curX..

    on next pushed

    add one to global variable

    set text to array.at(global variable)

  • Well you could do something like first set a global variable to the uid of the one you'd like to keep, than add a condition family.uid is not global variable > family destroy..

    I'm not sure if it would solve your problem, though..

    Your character not doing any actions, sounds more like an event-sheet problem, unrelated to the destroy action.

  • The way you are explaing it, it should work, if you have the right behaviours attached and the animations set on..