hellwalker's Forum Posts

  • they need against enemies

  • hello

    I have a simple scene, sort of sidescroller platformer tower defense situation, but player can't jump.

    Basically move/melee attack.

    and enemies just move in one direction and attack player if they are near him (melee)

    I think I can use platform behavior on both enemies and players, thing Is I don't want enemies or player to run through each other.

    one solution I could think of is making both of them Solid. but that gives me little problem with Towers which I don't want to block player.

    Another solution would be overlap at offset, but It does not update in time and player or enemy often overlap each other at random length. (deceleration happening?)

    I was wondering if anyone could give me better advice on what approach to try?

    thanks

  • hm weird, when I use distance all objects regardless of distance are affected, when using X comparison with combo with Y comparison

    only objects close enough get impulse

    I got i must use picking command in combo with distance but not sure how :S

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

  • nah distance is cleaner thanks :D

    I was just curious why it didn't work at first

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

    ended up with something like this, now Just have to figure out how to stop objects pushing when they already collided with target "Magnet"

    otherwise smaller objects fly the robot offscreen :D

  • oh thanks!

    I didn't know there was distance expression.

    i came up with something of my own, and just out of curiosity can't figure out why its wrong ;/

    <img src="http://i.imgur.com/60vR4.jpg" border="0" />

    :D my idea was that if difference between X was larger than radius (6) it would return positive amount and when added to Objects X the result would be automatically more then Objects X and event would not trigger.

    oh nvm figured out

    it was to be greater then or equal to

  • Hello

    I need advice on what would be best approach for this example.

    When character has magnet mode on, if there are Type: Large Metallic objects in certain radius player will be drawn to it, and if there are Type: Small metallic objects in radius they will be drawn to player.

    there is only 1 character and could be many metallic objects, should i attempt radius calculations or try whats seems to be simpler attach volume box to character and try picking overlapping objects?

  • sure no prob

    I think i fixed issue with same pic in random, new example

    box.com/s/w938y0zspne5asrjafxm

  • you can load each image into frame and randomly generate number on button click and load frame that has selected number.

    see file for demo

    box.com/s/w938y0zspne5asrjafxm

    (I'm not sure if same number preventing block works correctly though, too sleepy to test correctly)

  • in case anyone else wants to do same

    scirra.com/tutorials/369/magnet-effect/page-1

    Impulse + Set Angle towards point seems to do the trick

  • Hey! :D

    ok i can confirm its some other issue than my scene, I was just playing some games in scira arcade and same happened. that is game has different graphics and suddenly every object is swapped with that gradient (even text box).

    Though is weird must still be in combo with something, I played irrational fear of unicorns and Air Space a lot without this glitch and your-first-step game got that glitch twice while playing.

    suddenly all game objects just take gradient appearance like that in image. could not yet trace exactly when it happens

  • 301.42 latest, it could be video

    Laptop cards are always a bitch, this has two cards intel hd3k and nvidia gt555m with auto switch for apps, perfect environment to generate video card glitches ;/

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hey, that is how scene changes

    this is cap files, i modified for easier preview

    just try to Hook robot to left wall and stretch connection

    that's when everything turns to gradient view

    box.com/s/64u29icb7xhcchszf181

  • hello,

    I'm not 100% sure if that's it but I think i pushed physics constraints to far

    this happened 2 times

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

  • thanks for tip!

    though it has one problem, object flies towards point, but then continues on. should not it turn back towards point?

  • Hey

    how can i go about making this,

    Physics object to float towards another object (dragged by mouse) and hover around it.

    Like you drag magnet and nails withing radius float around it

    thanks in advance !