Aher0's Forum Posts

  • Just a thought. (Can't see image) could you have a sprite in the middle of the layout, then every tick set the player controlled block angle to face the middle tile? . More or less utilising a circle pong game

    You could have 4 seperate blocks, and apon hitting a corner tile, switch control and visibility of the block, trouble is that may give you trouble(have to move down and up to hit the block again)

  • On click card: Set card angle to card angle + 180

  • Give it a variable. It's 0, in collition with player, set it to 1, you could start a timer to get rid of it.. or, when player distance is further than 30 (eg) and the variable is 1, destroy the platform.

    A Boolean would also work

  • Persist behavior

  • Solids do not move, physics is a good way to make path finding objects bump off of things, a little tinkering with friction and rotation (object behaviors) may be required*

  • On collision with Particles

    OR

    On collision with Enemy1

    Branch

    is GeiserOn

    Action

  • Either work it out prior, add it to an array. Like a grid of cities (like the pokemkn effective types chart)

    Or if you have one giant map with the cities on. You can have text say

    "time to city"& (distance (city A.x,cityA.y,cityB.x,cityB.y))/speed

    This should give the time estimation... for a straight line...

    If you have roads, i would advise getting a path finding bot to run the route, set a timer, and stop it when it reaches the target city. Write this down lol

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • On created obj_enemy

    Type = tank guy

    Spawn obj enemy00 top spawn obj enemy01 bot

    This should make it work once, per tank that is spawned. Also this is a perfect time to pin/ aquire targets

  • I have to check this out. I was trying to make something similar, on touch draw a dot. On hold every x seconds draw another. On release set them to "on"... this makes loads of physics balls appear and fall independently .. pin does nothing for physics objects.haven't tried joints however, would a joint connecting each joint to the rest make this more solid perhaps?

  • do you need them all to move, or just the one you click?

    on click white sprite,

    pick nearest black

    pick by comparison, black.x</> white.x set white position to black

    depends on direction they are moving

  • more or less just wanted to see if there was any examples anyone has

    2d map, player has angle of view, everytick the computer possess' the surroundings between the angles for the player on screen sight.

    tried this before and failed.. I'll try again, unless its given to me

  • Array, 10 width.

    as you pick up the weapon, push the weapon number (1 for gun, 2 for shotgun ect)

    then its up to you how you want the hud to look. to shoot, just check if the array at x (the gun you are using) > 0

    you could assign loads of variables to compare also.

    hope that helps!

  • 1 solution is to give them physics, it just makes them bounce off one another, then continue on their path (lol, game can become like a sonic game where they bounce out of bounds)

    the 2nd option, is look at the sample games in your construct 2 (when loading a new project, scroll down) there is a tank family behaviour example.

    it has some code for slowing down the sprite as it gets close to another path seeking object

  • just say on left key pressed. Fighter animation mirror (in the actions)

    and on right pressed, not mirrored. that will work for jumping as well.

  • top down? like birds eye? not very platformer...

    Best I have is a birds eye game where jumping raises your level, blocks set to levels can be walked on and under... however I cant share the cap.x yet sorry. soon

    alternatively if you mean a top down, to be like go in the top and go down to the bottom...

    platforms that move, then move in the other direction upon collision. only limitation to how much it changes without becoming a mess is up to your creativity, maybe some destroy blocks so the player has say in how the platforms move?

    or do you mean a random spawned dungeon...if that, post it when complete lol