DesignerSpecial's Forum Posts

  • 15 posts
  • Thank you very much (again)!

  • Thank you very much for the quick replies, it's appreciated.

    I just realized I might have another small problem and I'm unfortunately away from my machine with Construct temporarily. I'm assuming that I would have the sequence be: when enemy moves within x pixels of player, random number is rolled, compare random number to enemy private variable, if random number is (for example) 1, do kick, 2 do punch, etc. However, I want enemies to do one attack slightly more often than others, like: if random number is 1, kick, 2 or 3, punch, 4, 5, or 6, shoot. Could you tell me how I can set specific ranges for variables as in this example?

    Thanks again.

  • Hi. Could someone point me to where I could learn about generating random numbers? What I'm basically trying to do is have it so that when an enemy moves in range, it attacks in one of four ways. I figured one way of doing it would be to generate a random number that would trigger a variable and thus determine the attack (like if the number is 1-20 it shoots, 20-40, it punches, etc).

    Of course, if you have a better way, I'm all ears. Thanks in advance for any help.

  • Thank you very much too, I'm sure I'll learn quite a bit from your example. Great thanks for sharing.

  • Ah, I didn't pay enough attention to notice that the file was only the .exe. Anyway, that's a great demo! Very smooth animation and motion, and the combo system is definitely something I'd like to know more about. Fine work so far!

  • Thank you for that file, I'm sure it will be very helpful to look through. My idea for a game is more of a fighter 'on rails', so most of my issues will be with combos and very basic enemy AI (blocking attacks, attacking back, etc). Thanks again.

  • I'm very interested in seeing any submissions to this challenge, as I would like to make a fighter of sorts myself (more Double Dragon than Street Fighter) but have not yet found any examples to examine and learn from. Like you said, people say that any sort of 2D game can be created with Construct, but some types seem to be a bit out of reach until you see how someone else did it.

    Thanks.

  • Voted before I even registered here. Construct can already do some things that programs I've paid for and others that have been around for years still can't do. Best of luck to the team!

  • The only other code is an Always command to keep the Pink sprites aligned with the Pinkbox (that's shown in an earlier code example) and the Kick section, which is identical to the Punch one except for using kicking animations.

    I will try to post the .CAP file later today so you can see exactly what's happening if that's OK. It might have more to do with the animation speed and a slight acceleration/deceleration in movement than the actual code, and the only way to tell would be to see it in action. Thank you very much for trying to recreate it, your help is appreciated.

  • Guh, this is getting frustrating. Arima's idea of control states worked perfectly until I added walking animations. Now I have all of the same problems as before; attacks playing one frame, being interrupted by walking animations, the character moonwalking, etc.

    Could someone look over this code and let me know if there are any obvious problems?

    <img src="http://webpages.charter.net/designerspecial/code3.jpg">

    I'm sorry to keep asking about this, but I really want to get this issue solved before moving on to anything else. I'm assuming that I'm just missing something, but the last time I had a fairly similar problem with a game creation program and asked in the forums, it turned out to be a bug after all. Might as well be sure it's just me. Thanks in advance.

  • Makes sense Deadeye, thank you.

    Arima, that sounds like a good idea, I will try it as soon as I learn how to use text variables. I haven't found how to call them yet, but I will look at more tutorials and see if I can figure it out. Thanks for your help so far.

    edit: duh, I forgot to put quotes around the text variable. Hopefully that will work. Thanks again.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you, that is a very good idea and it immediately fixed the problem I was having until I tried adding left and right walking animations. Could you tell me what might be wrong with this updated code?

    <img src="http://webpages.charter.net/designerspecial/code2.jpg">

    If the untoggled commands are turned on, the player freezes when the attack command is entered. Do I just not have them in the right locations? Also, I would think I'd have to turn the 'standing' variable to 0 while the 'punching' variable is at 1, and vice versa - is that correct, and where would I put those commands?

    Thanks again for your patience and help so far.

  • Hi, sorry to bump this but I'm still having problems. If I release left/right before attacking, everything is fine, but the problem occurs if I continue holding a direction while pressing attack. I tried adding "is walking" and "attack animation not playing" commands, but it does not help. Do you have any other suggestions as to what I might try? Thanks.

  • Thank you for the suggestions. I did switch the global variable to a private one, but I'm not having as much luck with the other fixes.

    • Adding an inverted 'Animation "Punch" is playing' to the walking condition does not help with the problem of the walking animation interrupting or canceling the punch animation (same for Kick obviously). Another issue is that sometimes only one frame of the 3 frame punch animation comes out when pressing attack while walking.
    • The problem with the switching animations in the middle of an attack isn't between Punch and Kick, it's that if the character is facing left and starts to punch and I press right during the animation, she switches to the mirrored punching animation.

    Thanks in advance for any further advice.

  • Hello,

    I just discovered Construct about a week ago and have been very impressed with it so far. Having come from using other editors like OpenBOR and Game Maker, it's already easier and has more of the features I need even at this early stage. However, I'm running into what's probably a pretty noob problem and was hoping someone could point me in the right direction.

    I'm using the following code to make a character (named Pink) that can move back and forth and attack. Pink needs to stop moving when she attacks, thus the "Pinkcanmove" variable. However, I'm running into two problems with this code:

    • If you press attack while walking, the animation flashes one frame for a split second and then she keeps walking. I want to have it so that when you press attack, the command overrides the movement, she stops moving, and the attack animation comes out.
    • If you press left or right during the attack animation, that animation is interrupted and mirrored. I understand the mirroring (there are left and right attack animations), but not why you can switch animations in the middle of the attack. I'd like to stop this from happening.

    Here is the code:

    <img src="http://webpages.charter.net/designerspecial/code.jpg">

    Pink is using Platform movement even though she only moves left and right.

    Sorry to ask, I just couldn't find a solution to this in the Platform tutorial or on the Wiki (but maybe I missed something). Thank you very much in advance.

  • 15 posts