GUN's Recent Forum Activity

  • I'll try explain again. The player character can kick an object (like a sphere), which has a coordinate of (40,100). After kick, the object will moving forward (and activating its bullet behavior). After the object hit something, like a wall.

    It will destroy the object, and start adding its Counter / TImer variable . After certain value (like 100), it will respawn the object in (40,100).

    I somehow succeeded in my first try ,by putting 2 instance variables (in the object, every individual object on screen)that store the value of coordinate : thisX (40) and thisY (100). Somehow it works, but the result makes the object multiplying themselves (like rapid fire shot in shmups games) and sometimes the object doesnt respawn anymore.

    I'm really stuck at this. Anyone can help me? Thanks in advance.

  • Thanks . But to clarifying things, overlap means if a sprite touch another sprite (even by difference of 1 px) , it will be accounted as triggering something, right ? SO, in order to prevent this, I must make some sprites smaller by 1 or 2 px, right ? (in a maze-like level design)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So I have a sprite that will move when activated. When being moved, the instance variable "Counter" will activate , and after certain value, will respawn the object at the previous coordinate.

    What is the best method of doing this ? I've tried to put 2 instance variables that store the value of the sprite coordinate, like "thisX" or "thisY" = coordinate.

    But it doesnt always work. I dont understand how to differentiate trigger of a specific /individual object with object instance (class). Anyone can help me ?

  • I have a sprite (spriteA, 40x40 px) which has a Bullet behavior , and when I activate the bullet, the sprite will be moving forward.

    If the sprite A overlap a tile (same size, 40x40 px) called SpriteB , right on the center of the tile, it will activate something, or change the bullet direction (such as 270 degrees). The problem is, I dont know the overlap to offset coordinate. I've tried collision at imagepoint(0) but it doesnt work. Should I use Self.X or something ? Anyone could help ?

    E:/sprite.png[/img]

GUN's avatar

GUN

Member since 3 Dec, 2016

None one is following GUN yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies