blankedt's Forum Posts

  • Okay, the reply was that this was meant to be. Even though I think it shouldn't be.

  • blankedt, can you reproduce this bug in your system (I mean from scratch, with your own .cap)?

    Yep, with a blank .cap. I'll report this bug.

  • > Direct-X DLL's couldn't cause it, better to post a .cap of the problem.

    >

    A .cap file and a video example - http://rapidshare.com/files/271402184/Mad_car_behavior.7z. They were written from scratch, so - simple sprites (just to show behavior).

    Can anybody report the behavior of this .cap file (without changing something)?

    I'll take a look at it right now (will edit post).

    EDIT: Weird.... I think you have actually found a bug. Basically, if you create a car object, then press the down key, the car will keep moving backwards even after your finger is off. Haven't noticed this...

  • blankedt, well...it works. ) - it can move back after one key pressing - with the same speed. I supposed, that built-in behaviors of moving back and moving forward should be similar or the same. In Construct - no. Why??? Is this bug?

    Just try deleting the car movement (remove the behavior) and try again. That or you might have a bug (you are using the latest version, right?)

  • >

    > > blankedt, would you mind writing the tutorial? I have the same problem with car behavior, but still have lack in knowledge. So...any tutorial would be great and helpful (even in the form of simple text).

    > >

    > Do you want a tutorial on how to get the car to stop when it hits something?

    >

    >

    Better two things: how to stop while hitting something and how to lower bouncing.

    By the way, can anybody explain a strange behavior in car movement. I have a sprite named "Mycar", it has "car behavior" movement, no any coding. The result - the car can move back repeatedly even after one press-and-release of a key, assigned to a back movement. Compare with moving forward: press key - moving, release key - lowering speed and finally stop. Repeat again - no any additional coding was done by me! It's abnormal!!!

    Well, stop when hitting something is simply like this (in the construct event sheet):

    On car bounce (this is found in the car tab when you right-click and add a event)

    -Stop car (found on car event as well as a sub-event)

    With the default car movement, I don't think you can change it since it depends on the speed in which it hits.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • blankedt, would you mind writing the tutorial? I have the same problem with car behavior, but still have lack in knowledge. So...any tutorial would be great and helpful (even in the form of simple text).

    Do you want a tutorial on how to get the car to stop when it hits something?

    I did some research yet still don't know what the custom movement behavior exactly is.

  • Maybe something like

    Sprite: On bounce

    System: Compare, Sprite[Car].Speed Greater Than 100

    Action > Sprite: Stop

    Or maybe using "Set speed" in the car tab.

    Hm, I couldn't get your first idea to work, but set speed just makes it keep moving along the axis where it hit (aka it does slow it down but it keeps moving without input)

  • I haven't tried car behavior, so moving on to 2: Yes, "if key down" works like that. As opposed to "key pressed" which triggers only once.

    Hmm, actually, about 1: It looks like doing

    Sprite ("car" tab) 'On bounce' for a condition, and Sprite ("car" tab) 'Stop' for the action stops the bouncing nicely.

    Ah, number one works (except it 'sticks' but that's fine, expected with stop) and 2) I forgot if key down even though I wrote it, I wrote key pressed

    Problem solved, thanks to everyone who helped!

    EDIT: Anyone know how to not make it 'stick' or only make it stop it on the first hit? I tried to find a 'decelerate' expression thingy but didn't seem to find one.

  • 1) You could do that with Events. Can't think of the needed events off the top of my head though

    2) Yes. As long as the condition(s) is/are true it will perform the actions. In this case as long as the Left button is down it would add 5 to the variable 'speed'.

    1)Okay, I'll see if I can build some behaviors to make it work.

    2) Okay, so it will keep increasing if it's held down (5,10,15) correct?

  • I was trying to create my custom car movement so there would be no more bounce but as I was translating my Flash code into Scirra, everything went wrong and it pretty much failed.

    I have a few questions because of this:

    1)Can you get rid of the 'bounce off walls' feature on the Car Behavior?

    2)When you use a 'if key down' statement, does everything in that code occur constantly? I put 'if left is down, add 5 to the speed variable'. That would continuously add 5, correct?

  • Thanks, I forgot about those.

  • All the links seem dead right now.

  • I'm having animation difficulties relating to how to get them to play. It's a platformer, so when I press the right arrow key, for example, my "walking" animation should play. However, with simple if walking, play animation events, he actually doesn't walk at all.

    If someone has an animation example (say, part of a game .cap) I'd be happy to learn from it. Thanks!

  • I'm using Windows Vista Ultimate and Construct shows with alt+tab

  • Thanks to linkman2004 for the code (it works, trying to figure out how it works so I can use it for other purposes =) ) and deadeye for the help on where to find it, and of course to Ashley for the program in the first place. Glad it got added to the FAQ. Thanks all!