Gadgetkk's Recent Forum Activity

  • If you look at event 19, there are some disabled lines where i have been testing different things.

    The click and drag was just another try, but since it only works while dragging and not always following, it isn't ideal.

    So disable event 20 and enable 1 of the event 19s and you will see the issue.

    Also, I know I have extra instances but can't figure how to get rid of them.

  • Ok here you go:

    drive.google.com/open

  • Hi Everyone,

    I'm wanting to have it so when an object is destroyed it spawns some loot. Easy enough so far...

    The catch is I want to 'fly up' and bounce a bit when it does. Make it look interesting instead of just plopping a new object in place.

    Now this isn't a platformer so I'm not sure gravity will do the trick, and I think it will involve lerping of some sort.

    Thoughts or suggestions are appreciated.

  • So I tried both of those with different results...

    Doing the Mouse.X(layer) kept the object following the cursor BUT, I have the cursor snapping to a grid. And when my camera moved, it would still snap but not to the same grid anymore (like it was snapping to a grid on the GUI layer and not on the GAME layer). Is there a way to fix that?

    I also tried the CanvasToLayer (and a bit disappointed at how little the manual has on it), but this didn't net anything of use. The object did not move around much, similar to how much movement I was getting originally.

    Other thoughts or corrections to what I'm doing?

    EDIT::

    Ok I played with it a bit more and got a lot closer:

    Set X: round(Mouse.X("Game")/Global_GridX)*Global_GridX

    Set Y: round(Mouse.Y("Game")/Global_GridY)*Global_GridY

    This mostly works, except it seems to not allow much distance from the original point in the object before moving to the next tile over.

  • Hi Everyone,

    I have some graphics that are pretty high detail and thus large. I have used the scale layout option set to .25 so that more of the map and graphics show in the game window.

    However, I have an icon that follows the mouse using this:

    round(Mouse.X/Global_GridX)*Global_GridX

    round(Mouse.Y/Global_GridY)*Global_GridY

    But instead of following the mouse correctly, the objects moves in a much smaller ratio (i assume it is also scaling the mouse movements).

    So how can I either do the smaller graphics to show more game without using scale or fix the smaller ratio when following the mouse?

  • Yes, that is exactly what I was looking for. Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Still says the file is invalid.

  • No ones the answer to this?

  • So I have a pipe game that allows for multiple solutions so I need a flexible way to test if the start and end points are connected.

    In another engine I did this in I was able to use the pathfinding to test if there was a path available between the 2 objects by making each piece a path piece.

    Thoughts on how I could do this?

  • I tried opening your example but it says it's not a valid file for C3.

  • Hi Everyone,

    I'm trying to a timed spawn where ever 5 seconds it spawns 3 enemies 1 second apart. But for some reason it only spawns 1 enemy every 5 seconds.

    Thoughts on why this isn't working as intended?

    Edit: fixed the title

  • Hi everyone,

    Wanting to know how I can change the viewport size without changing the window size (IE cramming more of the game into the same sized window)?

    Right now if I change the viewport size, it is just changing the window size.

Gadgetkk's avatar

Gadgetkk

Member since 11 Jan, 2018

None one is following Gadgetkk yet!

Trophy Case

  • 6-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

8/44
How to earn trophies