Little job ($10)

0 favourites
  • 8 posts
From the Asset Store
Platform HTML5 game, where the little Dinosaur must cross the forest, desert and snow forest.
  • Little job ($10)

    Hello!

    Job is simple:

    i need tiles movable like this

    here i placing "1" to it place

    dropbox.com/s/3zbw8sqjl3md10k/placing%201%20to%20it%20place.gif

    The same way (by my game condition) must be placed

    all tiles. (from 1 to 39)

    But at this moment something wrong, i can move only three tiles.

    here capx

    dropbox.com/s/4d3h2af2xuj8bnj/blogz.capx

  • You forgot to switch the "GridX" and "GridY" instance variables when a tile is selected:

    <img src="http://i.imgur.com/4EY9JxJ.png" border="0">

    Capx

    Assuming this is what you're looking for, give the money to a nonprofit charity. If you're using paypal, it should be easy to donate.

  • zatyka

    it made trick. but after some motions digit "1" not movable again, i don't know how to fix this bug

    Any suggestions please!

  • A stupid error on my part. It should be fixed. Also, I fixed the issue with diagonal tiles being switchable:

    Capx

  • zatyka

    Yeeeees! Thank you!

    I tested, now it's working, so please write you paypal address.

    Or do you really wants me to donate money for charity?

    And last question, how to increase movement speed?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yep, give it to Charity.

    You're handling tile movement with the following events:

    <img src="http://i.imgur.com/L22dErC.png" border="0">

    You're moving the selected tile 1 pixel per tick horizontally/vertically in the appropriate direction while its position does not equal its Destination. This method is problematic for moving/stopping tiles for 2 reasons:

    • It's framerate dependant
    • You would need to use inefficient methods to increase the speed

    If you were to continue with this movement method, the easiest way to have the tiles move faster would be to repeat these events multiple times in a loop. For example, if you looped through the above events 3 times per tick, each tile would move 3 pixels per tick. There are other more efficient methods for movement that are also frame rate independent. Here's one method: capx

    There are even better ways to handle this type of movement, but other parts of your game would need to be reworked. Another option would be to use rexrainbow's "moveto" behavior. It makes movement like this very easy, however it's always good to know how to do it yourself. I'd also recommend looking into Ashley's tutorial on frame rate independence and dt.

  • zatyka

    Thank you for useful explanation.

    It works fast and perfect!!!

    I donated to American Cancer Society

    here is screenshot

    dropbox.com/s/lwl3i7ihyfluoew/donation.jpg

  • zatyka i PMed you

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)