drewerd's Forum Posts

  • 5 posts
  • blackhornet

    Pin didn't work, it only grabs me when I get to the edge of the log.

    shinkan

    Nope, I tried turning it on, it didn't change anything.

    Thanks for all the help so far I do think that there is a bug with construct so I went ahead and filed a bug report here:

    scirra[DOT]com/forum/setting-bullet-speed-to-a-negative-value-inverts-the-result_t149146

  • Problem Description

    When setting the speed of a bullet object through an event, a negative value will invert the result when applied twice.

    Attach a Capx

    drive.google[DOT]com/file/d/0BwDq5BPaWAXyaWl3NUJqUVlaX00/view?usp=sharing

    Description of Capx

    Adds a sprite with a bullet behavior. When x is pressed the sprite moves to the left, when pressed again sprite will move to the right, and so on.

    Steps to Reproduce Bug

    • Open a new Empty Project
    • Under Projects window Right Click on Object types, select insert new object
    • Add keyboard
    • Add a new Sprite
    • Upload image or use pen tool to ensure it is visible in some way
    • Under Sprite behaviors add bullet
    • Set Speed to 200
    • Set Initial State to Disabled
    • In the event sheet add a new event
    • Choose on key pressed, set to "X"
    • Add action Sprite, Set Bullet speed to -200
    • Add action Sprite, Set Bullet to enabled
    • Run Layout
    • Press X
    • Observe that Sprite moves to the Left
    • Press X
    • Observe that Sprite now moves to the right
    • Observe that pressing X multiple times will repeat this behavior

    Observed Result

    Sprite inverts it's direction when X is pressed.

    Expected Result

    Sprite should only move to the Left, repeatedly setting the speed to a negative number should not change the movement once the sprite is moving.

    Affected Browsers

    • Chrome: Yes
    • FireFox: Yes
    • Internet Explorer: Yes

    Operating System and Service Pack

    Windows 8.1 Pro

    Construct 2 Version ID

    Release 206 (64-bit)

  • Try Construct 3

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

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

    That's a really good idea I'll try it out and let you know.

  • VIKINGS

    I'm using bullet because my normal movement is grid based, so I have a different set up for that. When the player is on a log I want the movement to be smooth so I'm using bullet.

    newt

    My problem is that this: I set bullet to -200 and my player moves to the left. I set it to -200 again and it starts moving the other way. I'm just setting the value to -200 two different times but I get different results!

    If anyone could download the project and see if they could replicate the situation locally I would really appreciate it.

  • So I've got a little frogger clone I'm building. Everything was going great until I got to the logs bit. The frog is supposed to ride on the logs smoothly while in all other instances he moves on a grid. So, I've had a *lot* of trouble getting this to work and I've got the problem nailed down to this.

    When I set bullet.speed of the player to a negative value it appears to invert the previous value.

    Example: On X pressed Set bullet speed to -200

    Each time you hit X the object reverses his direction.

    Here is my capx file:

    So I've got a little frogger clone I'm building. Everything was going great until I got to the logs bit. The frog is supposed to ride on the logs smoothly while in all other instances he moves on a grid. So, I've had a *lot* of trouble getting this to work and I've got the problem nailed down to this.

    When I set bullet.speed of the player to a negative value it appears to invert the previous value.

    Example: On X pressed Set bullet speed to -200

    Each time you hit X the object reverses his direction.

    Here is my capx file:

    drive.google[DOT]com/file/d/0BwDq5BPaWAXyR0FsVzdTODlFbEk/view?usp=sharing

    Event 47 and 48 are where I'm setting the speed of the player.

    I really appreicate any help guys I feel like I'm going nuts.

  • 5 posts