justifun's Forum Posts

  • Clicking the Edit Tile Collision Polygon button in the tilemap window does nothing.

    Double clicking the desired tile opens up the image editor window just fine though.

    Windows 7 64- 152 beta

    Construct 2 version:

  • You can fake a infinite scrolling space background using this plugin

    scirra.com/forum/plugin-sprite-sheet_topic78654.html

    simply connect the keypresses of flying your ship to the offset x and y of the special tiled background in this plugin.

    Here's an example file

    dl.dropboxusercontent.com/u/403350/infinitespace-example.capx

  • Its mentioned in this video

    youtube.com/watch

  • box is overlapping box at offset - 32, 0

    (sub event)

    box animation frame = box.animation frame

    do action

    this checks the box next to it 32 units to the left

    then compares the box's current frame to the one next to it

    if they are the same, then it will perform the action you want.

  • Dont forget to make use of the "bookmark" feature as well. Right click an event and hit "add bookmark" to jump back easily in the future to a section.

    You can use the "search" field at the top under the view menu to find specific events etc as well.

    cheers!

  • Yup, they can both ben enabled/disabled independently.

    simply switch them when he hits the water!

  • I was able to replicate dynamic terrain deformation using the bitwise meathod for determining which tile to display.

    saltgames.com/2010/a-bitwise-method-for-applying-tilemaps

    I did it first with just a sprite with a different tile on each frame, but i was also able to achieve the same result with the new tilemap plugin.

    Took a while to setup but it would be awesome if it was built into the tilemap plugin.

  • check out the 'sprite sheet' plugin , works like a charm!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not directly, but you could easily create a variable with a number

    eg: "damage zone" and give it a value eg 5

    then check at any point if the current frame of the animation player is at that target area

    system player.current frame >= "player.damage zone"

    then you can easily tweak that number later on.

  • You can't limit the projects frames per second, but you can adjust the timing of the animations and speed of the movement to mimic what you want to achieve.

    When you select an animation from the animation list you will see a speed attribute it the upper left. lower that number to slow down your whole animation.

    also, each frame of your character's animation has a "speed" attribute that tells the game how long to spend on each frame. Click a frame and look for it in the upper left again

    increase that number to adjust how long the game should spend on each frame of your animation.

    using both of these you can slow down how your animations appear to play out.

    as for how fast it translates across the screen, simply slow down the movement speed of the pathfinding.

  • - The texture is repeating infinitely for me just fine.

  • Please let us know how much traffic you get through it. Not sure how many people know about it.

  • Here's an example file you can see how i've delt with reusing assets and spawing "prefab" characters based on one setup and multiple controls

    Basically its all based on functions though.

    You create a single player entity, and give it a unique owner ID at the time of creation. Then program a function for each different type of attack or movement etc.

    Then you call the function using its Unique ID as a parameter, and thus only the player that matches that Unique ID performs the action.

    eg: On Function Fire Bullet (1) (100) (250)

    Function "Fire Bullet"

    create object "bullet" at function.param(0) (player 1's position)

    set bullet.damage = function.param(1)

    set bullet.speed = function.param(2)

    This way you can reuse this one section of code over and over for any player no matter how many you have etc.

    Example

    dl.dropboxusercontent.com/u/403350/SpawnPlayerExample/index.html

    click player 1 and player 2's) gamepad to spawn them.

    use WASD and SPACE for player 1 and arrow keys and "/" For player 2

    you can see how i've used the same technique for dealing with other ares such as collision detection as well, one function that gets reused over and over

    Capx

    dl.dropboxusercontent.com/u/403350/SpawnPlayerExample/SpawnPlayerExample.capx

  • You would store the X and Y at the time they decide where they are going to go in a instance variable on the object. Like when you mouse click somewhere, or if they are set to goto "the mine" or wherever.

    Then after recalculating the path, you would use

    Find Path To (previous destination)

    to reroute them to the same location again.

    I think that regenerate path keeps their previous destination in tact though when you run it. i could be wrong.

  • Depending on the situation you can always use the same object, but have it display a different static frame as its image.

    eg: every chess piece could be the same object, each with a different frame image.