How do I attach something to a sprite? and......

0 favourites
  • 11 posts
From the Asset Store
Minimal Sprite Font with Stroke for Pixel Art games.
  • I want to attach the sprite titled "FistOfFire" to the sprite "Monster" in the animation called "Attack" frame 2.

    Here is the project:

    https://www.dropbox.com/s/vgotgkbyl6osj ... aproj?dl=0

    If your feeling generous maybe you could:

    1 Show me how to crouch.

    2 When crouching shrink the Playerbox and goes back to normal upon standing

    3. Attack when crouching

    If there is a tutorial covering all this please let me know.

    Thanks for any help at all

  • 1. Crouch - on button press, set animation to crouch - internal pain app. and animation tabs are accesed by double clicking on sprite and there will be a small tab with animations. Right click there to add a new animation, and at the bottom there will be another tab with frames.

    2. Player hitboxes - these are set in the internal paint app, again by double clicking on sprite. If you want a smaller hitbox on crouch, you just need to go to that animation frame/frames and set the hitbox smaller there.

    3. You need to make a variable checking if player is crouching: make variable, turn it on while player is crouching, and if that variable is turned on, it means he is crouching and during the time that variable is on, on key press attack ---> play animation crouch attack. On button crouch not pressed anymore turn crouching variable off.

    To attach something to a sprite look for the pin to behaviour.

  • Thank you

  • Sorry, but I unfortunately stopped on this project and just jumped back in.

    I've been attempting what you're saying for the past hour and cannot get it right.

    Do you mind showing me?

    I am only speaking in regards to the "Crouch Attack" animation. I cannot get him to do that animation while holding the "Crouch" button.

    Everything else worked just fine.

    https://www.dropbox.com/s/hsf7i5kgxx6lg ... .capx?dl=0

  • You've got conflicting events. If S is down, you are resetting to Crouch (event 6). If comma is pressed you do Attack at event 19 and but also CrouchAttack at 29. You need to account for the multiple conditions for the various states.

  • You've got conflicting events. If S is down, you are resetting to Crouch (event 6). If comma is pressed you do Attack at event 19 and but also CrouchAttack at 29. You need to account for the multiple conditions for the various states.

    Sorry, but I don't notice what you are saying. CrouchAttack is not listed on event 29.

    The only CrouchAttack I have listed is at event 3, but it's not even activated.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > You've got conflicting events. If S is down, you are resetting to Crouch (event 6). If comma is pressed you do Attack at event 19 and but also CrouchAttack at 29. You need to account for the multiple conditions for the various states.

    >

    Sorry, but I don't notice what you are saying. CrouchAttack is not listed on event 29.

    The only CrouchAttack I have listed is at event 3, but it's not even activated.

    Perhaps your download link is older than the current build version you're working on, or something?

    ~Sol

  • I wasn't going to post this since your CAPX opens with missing images. But I quickly hacked a few changes at events: 6, 19, 26-29

    http://www.blackhornettechnologies.com/ ... e_BHT.capx

  • Thanks for your help thus far, but I'm still not getting it. <img src="{SMILIES_PATH}/icon_evil.gif" alt=":evil:" title="Evil or Very Mad">

    I have tried implementing what you suggested and for some reason I cannot see what I am doing wrong. <img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed">

    Do you mind taking a look at what it is I've not picked up on?

    Here is the latest build:

    https://www.dropbox.com/s/yqtg0whg3awpx ... .capx?dl=0

  • Everytime i open 1 of those projects C2 goes in an endless loop, complaining about missing animation frames.

    You should completely redo the blood animation, delete and add them again.

    But then, when i got trough the blood miserie, i see none of blackhornet's suggestions in your last build.

    Even though, that character could standup in a narrow cave from crouch, but thats a easy fix with a 'overlapping at offset'. He only fixed the aimations, but i see none of the fixes ?

  • "An endless loop?" All it says to me about the blood animation is that the files may be missing. I hit enter to acknowledge it and it's done with. I'll fix that, but I didn't think of it as something immediate and that big of a deal. I'll get to correcting the blood animation if it's really that big of a deal.

    I've compared blackhornet's version to mine and tried implementing it, but it doesn't work. At least from what I can see. I have compared them back and forth several times. I just can't see what I am doing wrong.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)