Tobye's Recent Forum Activity

  • - That link is to this post.

    But strange it works for OrangeTapioca. Also Yarfapet - it still registers the keys are pressed for everything else, just specifically the boost event (which just adds speed to the bullet behaviour) doesn't work for me. I'll try a completely new project and see if I get the same issue.

    EDIT: Just tried on a completely fresh project and get the same problem :/

  • Hi all,

    I have this little idea for a game but one feature just won't work. I want it so if I hit 'B', the character will boost in the direction I am holding. This works for 7 of the direction, but for some god unknown reason up/left refuses to work!

    The weird thing is that it definitely recognises that up and left are being held, as if you put another action in there like 'destroy player', that will trigger no problem. It's only that the bullet speed won't fire.

    And the plot thickens: if I change the buttons to A & W instead of up and left arrows, it will work fine, UNLESS the arrow buttons are also held! Even if I disable all other commands except A & W, holding up and left will still render it useless. It really is very peculiar.

    If someone could have a look it would be very much appreciated: dropbox.com/s/iru1zg4cjclwo4z/dinobug.capx

  • I use "layer(0).x" for example, where '0' is the number of the layer. I always keep that layer's scale etc. the same so it will always work well.

  • Yeah I'm 100% on firefox. Actually I should note that in firefox it will have the issue even on the starting layout, where that always seems to be fine in chrome. I just tested them again in 128.2.

  • Link to .capx file (required!):

    dropbox.com/s/ui8ypjmlyq968qf/path%20bug%20for%20submission.capx

    Steps to reproduce:

    1. Start preview on layout 'start'

    2. Travel between layouts by moving onto the blue squares ('transitions')

    3. Explore the layouts

    Observed result:

    On the starting layout there is no problem at all (regardless of which layout it is). However, when you transfer to a new layout while playing, you'll find certain sections, particularly those with narrow passes, get buggy with pathfinding. You have to click several times or click somewhere else and re-approach the pass from a different angle.

    This only happens when music is playing. If you toggle the play music event off, it will all run as normal.

    Expected result:

    Pathfinding to work like normal

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: No (this glitch does not occur with IE, but another one does when you enter layout 'inside', where all the images go weird and cover up the screen - but that's a whole other issue I guess)

    Operating system & service pack:

    Windows 8 and don't know

    Construct 2 version:

    128 (was the same on 127)

  • Link to .capx file (required!):

    https//www.dropbox.com/s/gtbg234q2g0krdv/Buggin%20Out.capx

    Steps to reproduce:

    1. Load layout 1

    2. Click anywhere on screen

    3. Click anywhere again after arriving at original path

    Observed result:

    CHROME:

    No matter what happens to the angle of the object after arriving at the pathfinder destination, it will resume pathfinding as if the angle never changed.

    INTERNET EXPLORER:

    Crashes on load-up:

    ---------------------------

    Message from webpage

    ---------------------------

    Javascript error!

    Argument not optional

    localhost/pathfind.js, line 164 (col 4)

    This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!

    ---------------------------

    OK   

    ---------------------------

    FIREFOX:

    Crashes on load-up:

       

    Javascript error!

    TypeError: postMessage requires more than 0 arguments

    localhost/pathfind.js, line 164 (col undefined)

    This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!    

    Expected result:

    When 'move along path', it will begin moving from current angle as opposed to previous angle.

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Windows 8 and don't know

    Construct 2 version:

    126

  • Ashley - Great! And I also wanted to know if this was a bug or the way it was intended:

    When you find a path while not moving, it will automatically set the angle of the sprite to the same angle it was at when it arrived with the previous pathfinding, even if you wait ages and rotate the sprite in between.

    If it's a bug I'll make a more exact report.

  • BluePhaze - Yeah the problem I was having was tricky though, because I wanted to add the variable information of one instance to another instance of the same object. So, if I pick by UID I can access it's info, but then I need to pick the other instance before I can apply the info, so the UID picked instance is longer picked. So if there was a way to just select by UID in an expression I would get the information and be able to apply it straight away, without any of the extra fuss I have in there right now.

    Ashley has a good solution, thanks! It takes a little more work to setup than what I had (as it's a long list of variables), but it's less liable to run into problems.

  • rogueNoodle - Thanks for the idea, I mixed it a little with what I was currently working with and it seems to work okay now. I stored the IDs in local variables instead of a dictionary though which makes things much neater, but might not work for you if it's a long running system.

    I also was concerned about the IDs changing as things were destroyed, but it's all contained within a function call for now and I was able to work the creations and destructions in a way that it isn't currently a problem. But, if later on it does become a problem I'm scared it'll take me a long time to figure it out! xD Since the objects I'm dealing with are dictionaries, there no visual issue I can notice.

    Let me know if you do find a simple expression for this!

  • rogueNoodle - Alrighty, thanks for the lead at least! I'll try to find something. And yeah that's what we were doing before, and really it is a nightmare! Especially since you can't copy over dictionaries or families! It means remaking all the variable etc. every time you want to add something.

    ...and some time later I got stuck here:

    confluence.atlassian.com/display/BITBUCKET/Clone+Your+Git+Repo+and+Add+Source+Files

    I have no idea about terminal windows or anything. Anyone able to help me out here?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • BluePhaze - Oh sorry I should be more clear: I want to be able to select it followed by more detail. So if I type sprite(2).x, I will get the X location of the 3rd instance of 'sprite'. However if I use sprite.UID, that's it! I can't then select its X, Y or variables. This is important because I don't want to actually pick the object, just reference its information.

  • Just have an event that adds the instance variable to a global variable at end of layout, then set the player health to that variable at the start of the layout - easy fixed! :)

Tobye's avatar

Tobye

Member since 27 Jul, 2012

None one is following Tobye yet!

Connect with Tobye

Trophy Case

  • 12-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

14/44
How to earn trophies