Pongboy's Recent Forum Activity

  • NEW problem!

    I got all sword strikes assigned to one key, but how do I set it so that he can use each sword strike while not moving, and use the correct one?

    Basically, I want to be able to repeatedly press attack and have the correct animation play each time. Right now I need to move again before he will attack again.

  • I have another issue: I want to put in a sword slash animation.

    I have them all set up, the different frames for each direction, but how do I set it so that the sprite does the sword slash to the right if he is facing right already?

    Also how would I put in hitboxes for the sword for when I place in an enemy?

  • I managed to work out a fix, by creating a new one frame animation for each direction that play when the correct key is released.

    So when the right key is released, the "IdleRight" animation plays, which is one frame of the sprite standing.

    Is there a simpler fix for this though?

  • I have a sprite with animation frames for up/down/left/right, and they work only once. I can't press right, release it and then press it again and have the animation play that second time. I have to press another directional key (and play that animation) before the other key will work again.

    right key pressed= sprite moves, animation,

    right key released= sprite stops, stop animation,

    right key pressed= sprite moves, no animation.

    right key pressed= sprite moves, animation,

    right key released= sprite stops, stop animation,

    up/down/left key pressed= sprite moves up/down/left, correct animation,

    up/down/left key released= sprite stops, stop animation,

    right key pressed= sprite moves, animation.

    Basically I can't press any key, release it and press it again and have the animation play twice in a row. Why is this?

  • I have those set up already though. It won't do the animation the second time if a key is pressed twice in a row. If I press left/right and then quickly release it and press up/down (changing from a horizontal/vertical key to a vertical/horizontal key) sometimes the animation won't play at all, like I pressed the key too fast and the system didn't have time to react.

    Also when I run the game, the running down animation plays automatically until I press another arrow key. Is there a common fix to this?

  • Thanks for the info, it did help and work!

    Now I have another problem- when I press any key, up/down/left/right, the proper animation occurs, etc. When I release the key, the animation stops and reverts to frame 0, which is good. However, if I press the same key again, the sprite will just slide along in frame 0.

    For example, if I press right, he will turn right and do the running right animation. When I stop, he goes back to frame 0, slides for a little bit (which is what I want) and then stops. If I then pressed right again, he would just move in frame 0. If I then pressed left, up or down, he would do those animations as normal.

    How do I set the animations so that they can repeat their function immediately after the key is released?

  • I checked that and it was set properly. I'm not sure what I did, however it seemed to be a problem with my browser, only displaying the first run screen each time, which was just of the background.

    It's good now though, thanks.

    However I do have another issue, with getting my character to move. I want him to move down while the down arrow is pressed and to play an animation, and then I want it all to stop when the down arrow is released. How do I do this? And I don't want him to slide or rotate either.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, it was actually a problem with the run function. It kept displaying just the background when I first ran it. I closed my browser and tried again and it worked, but now it's stuck again.

    Is there a way to fix this? The run function in the window won't show any new settings I make, even if I save them first.

  • I have a background picture set up, and on the 1 layer I have one sprite with an animation yet he won't appear on the layout. He is set to visible, opacity is 100, initial visibility is visible...

    Why won't he appear on the layout when I run it.. why not?

  • That might be it, the college computers use internet explorer 8 I think. I'll try it with chrome sometime, but I don't need to anymore. We have moved on to another project but I never really got this one done. He wants us to use the "Gamesalad" dev tool because it teaches us about instances or something, while I told him and showed him how much better Construct 2 is. He recognised this fact, but he said we are all already too far into using gamesalad, so a change over wouldn't be fair so the others. I think he doesn't mind what dev tool I use though, so Construct 2 all day everyday for me.

  • I tried using the game after I copied it over to my memory stick, but it doesn;t function properly. The player paddle will go through both walls, following the cursor and neither score appears, possibly doesn't even update either. Also, the play again button doesn't appear, there's just a 3 second countdown until the game auto starts. The cursor also disappears when moved over the layout.

    I haven't changed anything, so what's going wrong here?

  • That's awesome, thanks. I would have preferred to be able to do the changes myself but at least you told me where I went wrong and how to fix them.

    1) I thought that might have been the issue but I checked and it seemed like it wasn't doing anything wrong, or I thought if I set it to transparent it wouldn't show up at all, which is another problem.

    2)I don't get is why you say the instance variables wouldn't have worked since I already had the global variables going. I put them in to match what you had set up in your version, as I recall them being essential for some events to take place..

    3)I can't believe I overlooked that, much less typed it out and thought that made sense, which it doesn't.

    4)At that point I was quite.. let's say annoyed so I guess I made that typo and overlooked it.

    5)This wasn't so much a problem as I knew it would have looked quite scrappy, but I wasn't too concerned about it. I'm thankful you took the extra measure of cleaning them up for me, even if it's only a small course project. Not even that, it was just a "see if you can use this tool over the weekend, try to make a game if you can" type deal.

    It's all very confusing and overwhelming, simple thing have a lot of working out to perform and there are so many ways you can make mistakes. If Construct had a way of suggesting where a problem is that's preventing an event from working the way it thinks you are trying to get it to work, then that would make construct 2 perfect.

    I guess with more practice I'll get it working myself some time.

    Thanks again.

Pongboy's avatar

Pongboy

Member since 20 Sep, 2012

None one is following Pongboy yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies