AnD4D's Forum Posts

  • neverk

    Surely that means you have to have a bunch of variables controlling such things. The simplicity of the normal physics engine is you just set the physics force strength and the angle.

    My code currently simulates something of a black hole. The closer you are to it, the greater the force. Can't see how I'd achieve the same with this one.

  • As an update to this, multiple games are affected by this issue.

    8 layers seems to be the magic number when using the debug.

  • I've heard this has better results than box2d... might someone be able to tell me how to apply force at angle?

    I can see there's apply at offset, etc... but I'm trying to covert my current code over. Isn't it as simple as apply force at 90 degrees? I keep reading that this is used for joints etc... so am I using it for the wrong thing?

  • Just a quick question. Anyone else noticing an FPS drop depending on how many layers you have in debug mode?

    I was working on a game with 3 layers perfectly fine, but then added 2 extra. Suddenly, when in debug I'm hitting 20+fps less than I was before, with no other changes made. Then I worked my way up to 8 layers, and I'm back to 60fps. I can't see what may be causing the slow down, but I noticed this about 5 versions back, and though it'd be a random glitch that'd be resolved in the next stable release.

    Just upgraded, and still an issue.

    Wanted to know if it was just me, or something else. Just annoying me at the moment, as the game I'm working on is constantly on 5 layers per level. Ashley has mentioned before that the number of layers shouldn't affect anything, so that's why I'm scratching my head.

  • Interesting additional (potential) problem. While creating a font size of 144, and including a lot of additional characters, I was given an exported image of over 4096 x 1024. Construct 2 came up with a message saying anything over 4096 doesn't work on all devices.

    Just wondering why the system didn't try to create a 2048 x 2048 rather than go for the larger width.

  • Looks like it's impossible. Text really is the most limited part of Construct 2, isn't it? Can't change colours/fonts... can't see what it looks like in game, and need to play the game to just see if it's correct...

    And finally, if your text ever fills up the box, you can't check it and change the scale accordingly... you just have to settle for an average font size and hope it all works out well. Shame.

  • I'm going to bump this rather than ask the same question, as it'd be good to know.

    My game has text that can over run. I want the scale to change if this occurs, but I have no way of measuring if it does.

  • AnD4D

    Try 2.7.

    Very quick! Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Also, somewhat cheeky, but might it be at all possible to include a duplicate character remover in the program? I've been given a whole bunch of characters I need to include, and I note many of them are duplicated. I've found something online explaining how to do this via javascript, but I can't get it to work at all.

    http://www.guideforschool.com/1939213-program-to-remove-duplicate-characters-from-a-word-2/

    *EDIT - Wait a minute... does it already do that?!?!?! Amazing!

  • Found a potential bug... or more likely a rare user interface issue. I have a lot of characters to work with...

    qwertyuiop@asdfghjkl'!zxcvbnm,.?1234567890$áäçúüíóöèéëñ()[]._:-/~!@#$%^&*()-+=_`:;[]{}\\|\"'<>,.?/.,·'_‘’‚‛:;¨`\\/ƒºª«»()[]{}*‹›\"“”„~&#?!¿¡←→↑↓√§¶†‡¦–—⇒⇔¤$¢€£¥™©®<>+-×÷=±∞^ˇ˘˙¸˛˜′″µ°¹²³♭♪•…¬¯% ¼½¾♡♥●◆■▲▼☆★♀♂àéòûüóêáâëôýÿõìãäíöþßøîåæïœùðçèñúšēįńņiěžāėıňőijęăąğķŕřĺġćċģļśşľħčďīłťūƒdžůűdzțųźżακτυλβγμφχνδεξψωοζηπρθισάΐΰέής;ίό΄΅ύώ·ϊϋаисъытйбвкуьэфлгдмхюяцнеёочшпжзрщ

    When I add this into the text area, the refresh button is pushed off screen, so I can't see if it works.

  • So having multiple sprites representing different teams appears to work, but it's a shame that you can't determine a target based on its variable as opposed to only its sprite.

    Using a family makes it easier to determine which member of the family you'd like to pick, but it requires more events.

  • So it seems that you can't use the turret behaviour to target the same sprite as itself. It'll either target itself or the first version created. No amount of disabling and picking teams seems to make a difference. It'll target anything. Shame.

    The only way I can think to fix this then is to have multiple sprites of the same objects depending on how many teams they'll be, put them in a group, and hopefully separate them out using that... I'll give that a quick go and report back.

  • Lancifer Sure, that's what I did. 60 down to 30. I could have lowered it some more, but that made the jerky animation even more noticeable.

  • vtrix My apologies for coming across as harsh, but I guess I was thrown by "will practically fit any shipdesign". This statement is seemingly true, so long as it's a single engine, or the engines are very close together. My ship has engines quite far apart, so seeing the left and right engines was just disappointing. That, and only 6 frames of animation, running at a smooth 60 frames a second meant that the engines were looping 10 times a second. I had to lower it to 30 frames per second to make it look better, played around with some effects, edited the animation, and included some particles to make it look better.

    It's alright now, but I guess I was expecting something similar to:

  • I've been working on a project, trying to get objects with the turret behaviour to target other objects based on their team.

    Seemingly, no matter what I do, the turrets will aim at the player no matter what team they are on. I've tried setting up a condition that states "If team = 0 target player", but the other teams will also target the player. I've also tried picking an instance of a certain team, and they're also targetting the player.

    At the same time, I tried using a container to spawn these turrets, and pin them to the base, but when created, they pin themselves to the first instanced object only... not sure why, so that's why my code has that extra bit at the start.

    Ideally, I'd like the turrets to target the closest team that isn't their own, but I can't even get the teams separated at this moment in time.

    Here's a quick break down comparison of what I've done: https://copy.com/WToLXjDSmNaNrcsr