Superpigy's Forum Posts

  • My version (attached above) works. Does it work for you?

    If not, then explain in detail what happens.

    Are there any errors shown in the browser console?

    What browsers are you trying?

    If you attach a .capx of your work, then this will be resolved much easier and quicker.

    I figured it out. I made my sprite scroll to, for later in the game, but since i was testing the movement I shouldn't have because it was just a never changing white screen, the sprite was moving the entire time. My apologies if I waste your time but thanks for trying to help!

  • My version (attached above) works. Does it work for you?

    If not, then explain in detail what happens.

    Are there any errors shown in the browser console?

    What browsers are you trying?

    If you attach a .capx of your work, then this will be resolved much easier and quicker.

    I'm using Google Chrome, and yeah the thing that you linked does work which is why I'm confused, how do you submit a .capx?

  • Superpigy

    You would make this a lot easier by posting your .capx.

    Try the example attached: Requires the latest stable release - r212.2.

    Just run the preview and press the 'F' key to move the block right.

    May I suggest you take a good look at the manual, and especially at some of the excellent beginner tutorials - you will learn much quicker.

    II have looked at the manual and used the exact code from the game you linked, but as I stated before, the sprite just won't move at all.

  • Superpigy

    > I made an event where if the F key is pressed, every tick the sprite moves forward a pixel, but the sprite doesn't move at all. Any help?

    >

    If you just used On Key Pressed, then this is a trigger and will only happen once. The every tick is meaningless in this situation.

    What you probably want is the condition 'On key down'. The every tick would still not be needed.

    Still won't work?

  • I made an event where if the F key is pressed, every tick the sprite moves forward a pixel, but the sprite doesn't move at all. Any help?

  • I'm making a game that uses duck hunt style shooting, but I don't know how to detect if the mouse is clicked over the sprite, any help?

  • I want it so that over time my bullets speed decreases and stops at 0. Can anybody help?

  • There is an option under system event, "add to variable".

    Yeah sorry I phrased that wrong I mistook the bullet speed for a variable because I used a variable for it originally for a power thing, aaanyway, is there a way to subtract from the bullets speed? rekjl

  • How do you add to a variable? By that I mean how do you do like (Variable Name) + (Given Number). I want it so that every time a sprite does a certain thing it adds to the variable but I don't know how to make variables add.

  • Variables man. Make it so when the button is clicked it also adds to a variable which when it reaches 2 moves the character down.

  • Are they both solid ? I've misunderstood, but I thought you wanted it to stop immediately ?

    Yes they are both solid and I do want them to stop immediately.

  • So I'm having a problem with a game I'm making. I wan't to make it so that when one of my objects collide with another it sets its speed to zero, but it won't even collide with the other object, it keeps on going. I tried setting it to overlapping but when I do that it just stops immediately. I turned collisions on both of them when the game starts but that doesn't do anything. Any help?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's as simple as that, I'm trying to make it so that when one object collides into another its speed is set to zero, but it won't even collide with the other object. I set it so that when the game starts collisions are enabled and them being solid is enabled but that doesn't help. I've tried setting it to overlapping but when I do that it won't even move forward it just stops immediately, and they aren't overlapping I know that for certain. Any help on what I should do?

  • Every 0.2 seconds -> Set variable to: round(random(1,10))

    Thank you so much!

  • Make sure to read the manual carefully, especially the section regarding numbers.

    The parts that should be of interest to you are such things as Int and Round (especially Round for your case), although you may then decide to try Floor or Ceiling.

    Have a look and get back to us if you still have a problem.

    Round seems very useful but how do you use it for a variable?