RioLuk's Recent Forum Activity

  • fisholith

    Hey, I was playing around with Containers too. It'll work.....but not for me, because I need the sprites to be independent. So if you hit the Sprite_Arm, only the Sprite_Arm will be destroyed. Not the whole Enemy. Containers are fine, but not in this case.

    Anyways, I found a very good tutorial written by TELLES0808. It helped me a lot, I played around a bit and I think I found a workaround for my problem.

    In case somebody is interessted in, I'll try to post it here. Right now I'm overworked but hopefully I'll find some time in the evening.

    I would like to post the link to the tutorial but I'm not allowed to, since I have not enough rep-points for posting urls but the tutorial is called "Understanding UID, IID, Health, Cards and Rocket smoke trail."

  • immortalx thank you for your advise, you are right. As I said, it's a very nasty way of "coding" and in the end it's not solving the problem.

    I guess, I have to read more about IID, UID and Functions.

  • Hi, I have the same trouble. Maybe someone can help or give us a tip.

    I have an enemy with Sprite-Head / Sprite-Body / Sprite-ArmLeft / Sprite-ArmRight so if I pin them together everything is fine.

    But when I want to clone the enemy (with all his sprites) the pin object pins to the wrong enemy.

    Pick by UID is an option, I know. But my enemies will be spawning every X secund(s). So i don't know which UID they'll have (or maybe I do?)

    I also tried "pick sprite by overlapping object":

    Sprite-Head overlapping Sprite Body

    -> Sprite-Head pin to Sprite Body

    Sprite-Arm overlapping Sprite Body

    -> Sprite-Arm pin to Sprite Body

    I know it's a very messy way. And I also tried the same methode with the condition pick by nearest....

    But both results are not working properly. Maybe "pick sprite on collusion" works better, but still, it's not a nice way to make it work.

    Hopefully somebody can help us here. Thanks!

  • Yeah, please maybe someone can share it again?

  • Oh man, please reupload the Link! I think this is exactly what I was looking for.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I like construct2 very much, but this community is what makes the software so nice to use!

    Thank you both for helping me with this. I used it, for my counter to show the milliseconds.

  • Hello people,

    simple question, maybe noobish but, is there a way to set a number like 0,123456789 to 0,123 so that only the first three numbers are shown after the comma?

    cheers and thanks for helping!

  • Perfect! That worked fine for me, thank you a lot for helping out. Didn't know it was that simple

  • Hi,

    is there a way to pin an object to another object's UID?

    For example, I have a sprite A and three other objects (BUT those three are from the same sprite). So actually I have sprite A and sprite B. What I want is to pin sprite A on every sprite B in the Layout. Is there an expression for pinning to UID? Because there's no way to type an expression for the sprite you want to pin...I mean you can only choose from an object and thats it, but how can I tell construct to pin sprite A with the UID 20 to sprite B with the UID 22 and sprite A with the UID 23 to the sprite B with the UID 24....

  • Are the cars driving with constant speed, even in a turn? I'm asking, because I'm racking my brain how to simulate a race. The cars have differen engines with different speedups, some have better brakes some better tires which all effect there way of driving and in the end there result. Well, and in a real car race, there have to be a brakeingpoint (the last/best moment where the driver hits the brake). This is very important, because some drivers (or cars) will brake later then others, which will give them an edge (in case they don't brake to late). I'm trying to simulate that action in a way. I searched the web but evertime I thougt I found something, the cars were never hitting the brake....it looks kind of automatic for me....not like a real race. Even though this is by far the best race-example for construct2 I have seen. Maybe someone has an idea, how to combine the "AI of Race car v2" example with my request. Or maybe a totaly different solution. It would really help me a lot, even the smallest hint, because I'm nearly giving up on this.

  • Ok, well that's a simple and nice tip. This should work fine for me.

    codah: the collision doesn't worked properly. The Player is not getting back the -50 if he's walking out of the Object:"Tree" again. anyway I'm going to try it with the boolean.

    Thank you guys!

  • Hi!

    I'm having a big problem here, mabey someone can help me:

    I want to add a number to an instance variable but only once, so here's what I mean.

    For example: Player is overlapping "Tree" -> subtract 50 from the Player's Instance Variable called "InView"

    and when he is not under a "Tree" he will lose the Bonus of -50 "InView"

    So what I'm trying to do is, giving the Player a Bonus of -50 on "InView" which will make him more difficult to find by the enemies. So "InView" stays for the visibility of the player.

    Now my Problem is, that as long as the Player is overlapping the "Tree" construct2 is subtracting -50 constantly in place of just once every time he walks over.

    I tried it with "Trigger once" but that only works for one time, so when the Player moves out of the "Tree" and after a while walks back in, he won't get -50 from "InView" again.

    And I tried something with the Behavior Timer but i can't figure out how it really works.

    Can somebody help me with this?

    Thanks

RioLuk's avatar

RioLuk

Member since 4 Mar, 2015

None one is following RioLuk yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies