Ashley's Recent Forum Activity

  • I think your problems arise from the fact you try to start loops from actions. There are loops you can run in single conditions in Construct, and these are usually better, because you can put them in a subevent and they remember the picked objects from above. Also, the 'For Each Object' loop sounds like it would be useful here. I think you're aiming for something like:

    + Box is not overlapping ground

    + For Each Box

    ----+ Repeat [number] times

    ----> Set box's Y to .Y + 1

  • I'm a bit confused. I think you want the Function object, which can trigger an event and carry over the picked objects. But why don't you put the action in the actual event instead of starting a loop to call the action? Or, if you do need to repeat it, use a condition loop (like the 'Repeat N times' condition) and put it in a subevent to the main event. It will run the loop, and remember the picked objects. As for "Before updating display", I don't understand that, the display is updated at the end of the events so the events at the end of the event list are run just before updating the display

  • The problem is that if this is a problem for someone like Kayin who made IWBTG, how hard would it get for people who have never made games before? People who Construct is aimed at. Sure, there are workarounds, but most people will lose hope before they have the effort to try them.

    All the built-in behaviors do this automatically for you. So it's only a problem if you go making custom movements as kayin is doing here - and if you make custom movements, you need to know about TimeDelta. Also, there's no band-aid fix for this - as faggatron said, you can't just automatically apply fixes - if you move objects by yourself, the runtime can't tell if it's a constant speed or a simple change of position.

  • You should always use TimeDelta. Using a fixed framerate firstly decreases the display quality - even if you set the fixed framerate the same as your refresh rate, it makes no attempt to stay in sync with the refresh rate. So it still might draw the screen mid-scan and tear - if it doesn't tear in fixed framerate mode, it's only working by chance. Not to mention if your refresh rate is NOT 60Hz (which is a LOT of monitors) then it tears all over the place. Why not have a nice V-Synced display so it looks good for everyone?

    Secondly if you use a fixed framerate and the computer isn't fast enough to achieve that fixed framerate, the whole game slows down to a crawl and all your timing goes out the window anyway (by 30fps everything's going half as fast, and the play might just get frustrated and quit).

    So yeah, just use TimeDelta. It's not THAT hard - everything in Construct works framerate independently for these reasons, so I wouldn't want to make a tick-based animation system. Use Every events and all that and your game can't be that hard to code.

  • It's in frames per second. So an animation speed of 5 = 5 frames per second = 0.2 seconds per frame. If you want 60 frames per second, then use an animation speed of 60 - but if your game is V-Synced (and it should be), note your game will be running at varying framerates (eg. 60, 75, 85fps) and so you won't get exactly one frame per tick. But the animation speed of 60 will still run at 60fps (its framerate independent).

  • Yeah, the layout has to be at least as big as the window, so make your layout the size of the biggest window size you want. So you WANT it to resize the display when you resize the window - but with point sampling? I don't think DirectX allows you to do that with its built in stretch... how about you set the display zoom?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • DirectX stretches the display if the window size is not the same as the display size. If you use 'Set display resolution' it'll resize the window AND the display size, keeping unstretched display. Try that - also if in fullscreen mode, it will change resolution.

  • saving as lossless pngs is not compressing

    It is - the filesizes are smaller than BMP, and there is no quality difference. However, given the way Construct works, it'd be difficult to implement different compression formats for specific images, I'm afraid. And if all images were exported as JPG, pixel artwork and game sprites would come out all artefacted. As a workaround, you could try storing your JPGs as external files, and load them at runtime.

  • Crash in the Event Editor

    " Every XX milliseconds with a "System: Creat Object"

    orks for me:[attachment=0:2vh51r86][/attachment:2vh51r86] - can you upload a .cap showing the crash?

  • OK weird... it works if you use a drag+drop behavior, but with your own drag events it crashes. I'll look later.

  • With a hex editor it wouldn't be difficult to make changes to the data stored. Still, if this is for your game saves or something, why stop them if they're that determined? Encryption is just another hoop to jump through.

  • Firstly, use the drag and drop movement! If you drag too fast, the objects are left behind with your code

    This is precisely how containers work. 'A overlaps B' naturally picks both the A instance and the B instance, which also picks the entire container of A and entire container of B.

    So what you want is to ignore the blue object's picking in this condition. You only want to pick the object that it was collided with, to save picking the blue object's own container as well.

    I've come up with a really funny workaround for this! Lets say A is the orange object, and B is the blue one.

    Use:

    + A overlaps B

    + For each A

    + A overlaps B

    -> Set A X position to .X + 10

    I *was* writing a short description of how it works, but to be honest, I can't figure out why this works. I would have thought the second condition would have still picked the entire container, but somehow the for-each overrides it. Ummm... I'm not sure if this is intended behavior or a bug. Hell, I say it's intended behavior. Because then, your problem is solved

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,427,176 followers

Connect with Ashley

Trophy Case

  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • Forum Mega Brain Made 20,000 posts in the forums
  • x108
    Coach One of your tutorials has over 1,000 readers
  • x62
    Educator One of your tutorials has over 10,000 readers
  • x3
    Teacher One of your tutorials has over 100,000 readers
  • Sensei One of your tutorials has over 1,000,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x35
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs