hperk209's Recent Forum Activity

  • Thank you AllanR for your help, I will try this as well!

  • Thank you so much Hayeck904, I will try your recommendation!

  • I've tried to find information in tutorials, expressions, and general troubleshooting, but I'm coming up blank... hoping someone might have done this before, or something like it.

    I've got a level where I'm trying to set up random tile generation. The goal is to have different tile 'sets'. To do this, I've got one sprite with three animations: Jungle, Snow, and Desert. I will attach an image.

    I am able to successfully reach random tiles with the array setup. However, as you can see, it affects each tile separately. Of course I want this for assigning a random number, but NOT for assigning which of the animations to use. I want all the tiles choosing a random frame from the same, random animation.

    As you can see, I've tried 'pick all' for my tiles, but it doesn't affect all the tiles uniformly. It seems to work exactly like the 'for each' function and just has each tile choose an animation separately.

    Is there something I can call to select all these tiles and give them ALL the same random animation BEFORE their numbers are assigned? Thereby making it so random levels generate within ONE tileset, instead of all of them?

    Thank you!

  • Thank you everyone for your responses. dop2000 your solution worked great, was nice and easy. Thanks again!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sorry for the delay, we've been troubleshooting some things and then had the holiday. Thank you dop2000 we will try your example!

    I already have it set to ignore input on Platform Behavior, but I guess I could try disabling it altogether.

    Your sprite 'pinning' idea is interesting -- I'd not heard that. Makes a good deal of sense though. I'll have to look into how to 'pin' but I imagine that can't be too difficult.

    Thank you again for your suggestions and for taking the time to investigate and reply!

  • Okay thanks newt I'll try that! Collision by offset was a good temporary solution, only problem being that of course once the sprite moves out of that point of space the action stops. I'll look into the rays. Thanks

  • I'll share the project as well. drive.google.com/drive/folders/1WlHEzfFi5CKFX74r_EF4JJY8fnsj7Zhv

    newt Okay thanks. Can the ray cast backward/negative?

  • From what I gather, this is the best way to share a project?

    drive.google.com/drive/folders/1WlHEzfFi5CKFX74r_EF4JJY8fnsj7Zhv

  • I'm gonna try and attach a copy of an in-progress school project. Gameplay works as desired for awhile, but in 9/10 games, after a minute or so, combat between units stops. They just start to stack up against eachother. I've tried disabling 'solid' as I know it's ignored by the physics behavior, but without solid, the units just walk past eachother (which I don't want). Anyone have insight as to why the units would suddenly stop? Thank you.

    Tagged:

  • Please see example. The enemies move left, and the sprite was drawn this way -- but the angle remains at default 0 degrees (otherwise the sprites would then face "backwards"). Need to make this enemy see what's "behind" it (even though it visually appears to be in front of it). I don't want to have too big a cone of view, otherwise it may attack unintended targets.

  • I am coordinating on a 2D platformer school project and just got a ton of 2D enemy sprites from my art dept. They're not facing in the desired direction to detect other sprites for ranged combat. I would normally just put them in a family and mirror them all. But this game has enemies spawn on the right side of the screen and move left, (and player spawn on left and move right) so mirroring them would make them all moonwalk.

    In short, is there a way I can invert the cone of view (i.e. make them see behind themselves) without having to go into a photo editor, invert all the images, reimport them, mirror them in Construct, and program the cone of view as designed? Or is there a way to 'trick' C3 into changing the angle/orientation without visually flipping the sprite? I have tried doing negative range and cone of view numbers like -200 and -80 but that's not worked.

    Thank you in advance!

hperk209's avatar

hperk209

Member since 8 Jan, 2019

None one is following hperk209 yet!

Trophy Case

  • 5-Year Club
  • Email Verified

Progress

6/44
How to earn trophies