klabundee's Forum Posts

  • On clicked, store Mouse.X and Mouse.Y

    Use math to split the position with grid size so you will be able to know the grid position to place the object.

    Example: Mouse.X=1222 and Mouse.Y=342

    The grid size is 128x128 so

    1222/128 = 9.54

    342/128 = 2.67

    So you need to create the object on grid 9x2..

    Converting into pixels.. 1152x256

  • Is it a possibility to just redirect it to your itch io page?

    I think that you are not allowed to close a PC browser process..

  • Paused you mean, suspended? If yes, you have to compare time on suspended and set action on resumed.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Let me understand better.. every time you press a button a different image is created?

    You can use: On Created (Sprite) -> Set text to Sprite (Instance Variable)

  • You can store it on Instance Variables on each sprite.

  • left("2.6449999999999996", 4)

  • Instead of using an image as particle, create a new sprite and use it as particle (object), it will create instaces of the object, if you debug it, you will see the amount of objects and their properties(same as the main object).

  • Can you share your project? I will try to help you

  • If you just want to place an object 64 pixels from his current position you can always set his position using Self.X+64 or Self.Y+64

  • Hi Guys!

    Hope you're well?

    I'm hoping someone can help me.

    So short story, I have a grid and within that grid I have an object.

    I also have cards that I want to control that object inside the grid (you drag a card into the drop zone and whatever is on the card determines what the object in the grid does)

    My question is, how do i have the Object move a certain amount of pixels within the grid once the player drops the card that has a move instruction on it?

    I know I can move it to a specific location, but what I want to do is move it 64 pixels on the X or Y axis from where the object is currently in the grid.

    I hope this makes sense.

    Thanks in advanced for your help

    Hello,

    You mean that you want to see the movement? Like, every second move 10 pixels till reach the X,Y?

    Try using tween behaviour.

  • Can you share your project? Let me see if i can fix it

  • Add one Goon to the layout, and on start of layout delete it.

    You can also have a dummy layout just to have instaces to avoid problems like that.

  • how????

    Create a new sprite. Place it on screen. Add pin behaviour. Set an action on start of layout: pin this new sprite to the animations sprite. Disable colisions on animations sprite.

  • so my walking animation is glitching me into the air and it then does my falling animation witch is it then makes me fall threw my semi solid blocks.

    my walk animation and idle animation wont play on semisolid blocks.

    this is my first game and my second day of ever being on construct.

    You probably have sprites with different colision points. I would suggest using an invisible sprite as collision pinned to your player sprite that contain the animations.

  • Yes, event sheet, sorry.

    Can you share your project? I will try it here