Calfuso's Forum Posts

  • What offsets should i have i have on the sine behavior to make it work?

  • I want my sprite to spawn another sprite at a certain position. The problem is that if you create an invisible sprite at that location and make it so that the sprite spawns to other sprite on collision whit or overlapping offset whit the invisible sprite the sprite will spawn the another sprite infinitly. I want to only be able to have one of the spawn object in the game at the time. I tried making events that would do that.

    http://postimg.org/image/3szwd8bvf/

    I created a instance variable called Amount and tried making it so when too much sprites would be on screen they would get destroyed. The problem is that all versions of the sprite get destroyed when the amount is reached not just the last spawned one. It mamkes the sprite not spawn anything. Is there a way make it os only a certain amount of one sprite can be in the game at once otherwise no more can be spawned?

  • Create an instance variable called "recover" and set it to boolean.

    Use 'on landed' would be trigger action once such as playing "recoil" animation. Add wait action (1 or 2 seconds) then set recover to true so we know the condition has switched. You also can make sure after the "recoil" animation finished, another animation is being played while is on floor.

    It took alot of thinking and trying but it worked in the end. Thanks!

  • I tried making s curved slope but i ran into a problem.

    http://postimg.org/image/7u275sp61/

    My sprite is a ball so it should have no issues going up the curved slope whit some acceleration. Still it get,s stuck at the end of the slope.

    http://postimg.org/image/8c7q71nk7/

    Here,s my collision polygon. It seems like the ball should be able to go triverse it whitout getting stuck. The help i want is how i should set up the points so the ball doesn't get stuck. You could also share a little project only containing a sucessfull curved slope on mediafire, dropbox or another file sharing website.

  • I want to make it so the character jumps whit space instead of up. Can i change that. I know that you can make it so the character get platform vector y when i click a button but it doesn't register as platform is jumping and you still jump when you press up. I want the character too look up when it presses up.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My character has another animation when it jumps. I need to make it so once it touches the ground it should go back to it's original animation. I don't want it to go the original animation all time it touches the ground since it should be able to go to other animations while standing on the ground. The on collision whit another object event makes it so so long the character touches the ground it can't do any other animation. The same goes for platform on floor event. Is there a way to make it so the collision only switches the animation everytime the character has jumped and reached the ground and not again until the character jumps again?

  • On a sprites collison polygons you have the option to add points but you can't select it. How do you make it selectable?

  • There is tutorials about making backgrounds and such but in these tutorials the background is made before the level. Sprites visibility over eachother is determined by when they are added in the layout. The sprites who have been added the latest overlays the sprites that have been added before them. My background is the latest sprite so it will overlay anything else. You can make a previously added sprite overlay a later added one if you copy it, delete it and paste it back into the layout. Since i have added alot of sprites in my layout and now want to add a background it would mean that i would need to do that whit every single sprite in my layout. I tried adding the background to a lower layer but that only makes it invisible. Is there any way to change a sprites visiblity over other ones in a easier way?

  • Disabling event 49 in your event sheet solves the problem..

    Now i am feel so stupid. Did you understand much about what my project was about? I wanted it to be private... Now i feel embarressed for such e easy problem.

    The reason why i had it like that is becuase i have vines in my game. The character get pinned to the vine on collision. When up arrow is pressed it supposed to jump off. The problem is that it just falls off if you don't do anything. I want the controls to get changed when the character is punned to the vine so get platform vector y -1000 and platform vector x 1000 whenever the jump button is pressed on when you hid ground the controls get normal.

  • >

    > > I guess you could create all of those movements with the sine-behaviour..

    > >

    >

    > In that case how? I can't find a a sine option that makes the sprite go in circles. I can't find a sine option that makes the sprite go in half circles. Tell me how i can use the sine behavior to create these movements. I tried combining a sine vertical option whit a sine horizontical option to make the sprite move up and down and left and rigth but it only makes the sprite move diagonally. Sine can only make a sprite move short distances so a a other way of movement would be better.

    >

    I'm not sure what you mean..

    Give the sprite horizontal and vertical sine, give one of those an offset of 1 and voila, circle..

    Increasing the magnitude increases the "distance", so it's not limited to short distances..

    Thanks you so much for the help!

  • If you could share a link to the file, either uploaded on dropbox or something similar, I'd gladly take a look..

    I did register on Dropbox. But when i try to upload the file it says

    Error (404) It seems like you don't belong here! You should probably sign in. Check or Help Center or Forums for help or head back to home.

    i am clearly logged in. The help center doesn't help you whit how to upload files. I could go into the forums but since you probably use Dropbox since you suggested it, you could help me whit this so you could see the file.

  • I'm not sure what you mean..

    An image point doesn't have an angle it's just a point..

    If you mean setting the origin of a sprite to another position so it rotates around that point, it's as simple as changing the position of the origin in the image editor..

    http://postimg.org/image/6i2qcabal/

    This is what i mean. Understand any better?

  • I guess you could create all of those movements with the sine-behaviour..

    In that case how? I can't find a a sine option that makes the sprite go in circles. I can't find a sine option that makes the sprite go in half circles. Tell me how i can use the sine behavior to create these movements. I tried combining a sine vertical option whit a sine horizontical option to make the sprite move up and down and left and rigth but it only makes the sprite move diagonally. Sine can only make a sprite move short distances so a a other way of movement would be better.

  • >

    > > Are you using the default controls?

    > >

    > > Sharing a capx with the issue would probably make answering the question a lot easier..

    > >

    >

    > Yes i have the defualt controls set to Yes. What is a capx?

    >

    The file format in which Construct2 saves as a single file is a capx..

    When i go in into save as single file it saves as Construct 2 comressed file

    It's written capx after it. So i hope that,s the capx. Hopefully you can help me now.