Sargas's Forum Posts

  • I really want to help you here, but I can't quite understand your problem :S

    If you want a tiled background shouldn't it be enough to add a tiled background? (double click on the layout and select add Tiled Background)

  • The link is absolutely broken btw... :S

  • I think you need to manually choose the collision shape of the object.

    Select the sprite on the object list, then right click and select "Edit animation". A edit screen will pop up and there on the left is the edit collision box. In there, if you right click on a point you can add or delete points. You can also tell the program to guess the polygon shape for you =)

    I'm guessing your shape has a white background? If you're using Photoshop you can draw on an empty layer, just make sure to export as PNG. That way C2 will guess the shape right away.

    Hope it helps :D

  • I think that is construct classic maybe?

    you could try separating the events.

    like this:

    • when door collides with sprite while close > set open, then destroy sprite.
    • when door collides with sprite while open > set close, then destroy sprite.
    • when door is closed > set opacity to 100 and become solid.
    • when door is open > set opacity to 20 and stop being solid.

    Sometimes the order of the instructions seems to alter the results. You could also try destroying the sprite after opening or closing the door. I know it shouldn't make a difference but it won't hurt =)

    Hope you can solve this ^^!

  • If you want to play a sound when something happens use the actions.

    Like this:

    Event: player collides with coin.

    Action: -add 1 to money

            -destroy coin

            -play sound (no loop)

    hope it helps :D

  • cool! :D

  • I think that just creating a new action is the same. C2 works that way after all.

  • Hello! I'm trying to make a door to door thingy in which you're suppose to be able to go back and forth between pair of doors.

    I know this would be super easy if I made a different object for each door, but I'm sure it can be done using instances of the same object instead.

    Currently I can only go one way with the doors, from instance 0 to 1 but no the other way.

    Here's the file.

    dl.dropbox.com/u/20613220/test_doors.capx

    ^^!

  • haha, i thought of that, but i wanted a proper clean solution :D

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • vtrix that is just perfect!!! thank you soo soo much :D!!!!! pure love to you :D!!!!!!<img src="smileys/smiley31.gif" border="0" align="middle" />!!!... and I feel embarrased, it seems really simple the way you did it :D

    now i wonder how many times I've overcomplicated stuff like this D:

    you gotta be trolling me with that? ?? thanks anyway ^^

  • hello :D

    I'm trying to make an "ai" that will only shoot at you when you are in it's "attack angle-range".

    I've already worked out like 90% of it, but I have a problem!

    i'm using x.angle and angle(x1,y1,x2,y2) in the "between values" condition. I increased the x.angle to each side so it's not just the 1 degree. it looks like this:

    Value:       round(angle(mob.x, mob.y, player.x, player.y))

    Lower bound: round(mob.Angle)-5

    Upper bound: round(mob.Angle)+5

    And it works (almost) perfectly :D! that, with some good-enough "set angle to you", makes a mean shooter.

    The only problem is that the "angle between objects" counts from 0 t 180 and from -180 a 0. while the "object angle" is all 360 degrees. So it means that the AI can't shoot up =(!

    my first attempt at solving this was to make all the numbers absolute... but there is still the issue that i will never get a match over 180 degrees. I'm also thinking that there must be a mathematical solution to this, but i'm not that good with maths.

    and i wonder... why does the "angle between object" counts like that and not in normal 360?? is it a feature or a mistake? :S

    i'm gonna try now to "trick" the game into working this by setting the ai mirrored when looking up.. so it will never actually have to be looking up... hope it works. EDIT: it doesn't >_<! (i'm gonna try mixing values now...)

    dl.dropbox.com/u/20613220/test_aim.capx

    here is the file i'm testing this on =) <img src="smileys/smiley19.gif" border="0" align="middle" /> <img src="smileys/smiley19.gif" border="0" align="middle" /> <img src="smileys/smiley19.gif" border="0" align="middle" />