lamar's Forum Posts

  • I can't seem to find the right event to use within the angle section. I've tried different things but I'm not 100% and nothing has worked. Could you put a quick example together please?

    I looked at your CAPX but because you are using Pin To and set angle and position that interferes with trying to read the angle and keep it from going past 270 and below 40 degrees.

    I tried several things but that Pin keeps over riding it and locking the head in weird positions.

    I think you need a rotation joint and physics to accomplish what you are trying to do or use a blank sprite as a block to keep head from over rotating.

  • Instead of copying the sprite clone it and then it is a unique sprite you can set with different path finding behaviors.

    When you create sprites they can be set at the time of creation with different path finding behaviors.

    If you want some wandering add in a Sine effect.

    Upload your capx to a server like dropbox and then you can link it with URL in the forum editor.

  • A few of the fonts will look the same on any browser and system and Bookman old style is one of them. I use that for texts holding numbers so they stay put.

  • yeah they all change correctly which is why im confused that it wont work

    That is when I start putting a text on the screen for each variable in an event that may be the culprit and checking them.

    That is the fastest way I know to find the problem

  • Have you ran it in debug mode and watched your variables and conditions for change?

  • The sprites and animations can be made in any program you want or in the C2 sprite editor.

    Once you have the pieces you want you set them up as either looping or not looping and then give them behaviors to create the movement in the events.

    There are many good tutorials on creating sprites and animating them.

  • You do not have permission to view this post

  • Check that your flash and pause is long enough to be seen otherwise it will look like it is always on.

  • > % is a symbol of modulo (reminder after division) e.g. 10%3 gives 1.

    >

    > If you want to check if player's health is more than 50% you should compare this: player.health/player.maxHealth>=0.5

    >

    i want to check it in % because i might have the player max health be upgradable so 100% health could go from 100 to 150 +, etc...

    that's why.

    Use a global variabe for Max Health and one for Set Health that way you can change it as the game progresses.

    MaxHealth=100

    SetHealth=100

    On Player Collision with Enemy: Subtract 10 from MaxHealth

    On MaxHealth < SetHealth/2: Change HealthBar Sprite

    That way you can change SetHealth later in the game to a higher number and the event adjusts. When you change SetHealth make sure you also set MaxHealth to that same number to start.

  • >

    > > Thank you everyone for your reply. I am unsure how to upload images to this site.

    > >

    >

    > You would need a direct link to the image when using the

    BBCode.

    >

    > Your host uses a separate url that links to the image so it doesn't show.

    >

    > I've changed it to a URL so at least users can now click the link to see the animated gif.

    >

    Thank you

    Just for future reference I use postimage for images I use in the forum and it accepts any picture or gif.

    https://postimage.io/

  • dropbox.com/s/5jmserpt7753yvp/ninjaadventureclimb.capx

    OK I looked at your CAPX and I don't set up my controls anything like that so here is my Ninja Boy CAPX:

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

    You can run, jump. slide and climb the ladder.

    You can't climb sideways on a wall unless you have a side climbing animation.

    You can use that same climbing example on a wall by making the ladder invisible against the wall.

    Study that because that is how I set up controls for a platformer that works smoothely.

  • You can change the number of pixels it moves in Move Forward which also changes the speed.

  • You have an animation speed and a bullet speed.

    You have to change the bullet speed and that should work.

  • I am making a top down shooter, with controls/aiming similar to Hotline Miami. And I would like some of the weapons to shake the cross-hair, (The mouse) to simulate recoil. I was wondering if it is possible to set the mouse's position in construct 2.

    Hmmmm?

    I don't think you can set the mouse position but you can use a sprite with a shake animation to simulate that.

    Make a shake animation of the crosshairs and move the image point left and right and use that for your cursor.

    When you call that animation it will appear to recoil or shake.

    I haven't tried it but should work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • >

    > > I've got my problems with image points too... I have several anmiations for an object and per anmiation different image points from where to spawn bullets from.. Accessing them via number works fine, but via name fails.. at least it seems to take a different image point than the one I want to access.. Everything works fine if there's only one animation though..

    > >

    > > Any ideas why accessing the image points via name fails when there are animations? (The animations are set BEFORE I try to access the image points)..

    > >

    >

    > It is probably a result of the speed at which the animation is being played. By the time you see the sprite attached to the image of a frame it has already moved to the next frame and so on.

    >

    > If that is the case using the Pin behavior is a better choice as it will stay where it is supposed regardless of animation.

    >

    > If you need something moving attached to an image point you will need to slow down the frame speed to see it.

    >

    Unlikely.. 1st, there's nothing attached there, just something spawned from the image point.. and the animation is still no "real" animation, just one frame (because not finished yet, just a placeholder).

    Doesn't matter if it is a blank sprite or not. The animation speed with changing image points will make that difficult to see.

    You " I have several anmiations for an object and per anmiation different image points from where to spawn bullets from"

    I was just going off what you said.