Vidar's Forum Posts

  • I have a little issue with the 'objects' bar (the one that sits in between the layout editor and the 'Properties' bar).

    When I right-click in the objects-bar, and select the menu-option 'show object tree', the object bar becomes gray, and no longer responds to any mouse clicks.

    Is it me, or is it an issue with Construct?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • so...I heard a rumor in the chatz about 99.4 maybe this weekend?

    That would be awesome. Can the developers confirm this rumor?

  • I tinkered a bit with it and came to the following conclusions:

    It's not the layout that's getting resized, just the objects in the layout that have some effect applied to them. I added a sprite object to layout 2, and pushing buttons had no effect on it. If the it was the layout that was changing size, it would affect the sprite too.

    I think there's an issue with using effects on objects in a layout that is inside a layout object.

    For the record, I used version 99.2

  • I just downloaded the latest version of Construct (99.2), and I noticed, that when the object bar is closed, there is no button that I can find that turns it back on. The buttons for everything else are present, but the object bar is, once closed, can not be reopened.

    Am I missing something?

  • Now I'm getting 400-600 FPS. But I think it looks a lot better now. Especially on the fence I got from google images.

    http://www.willhostforfood.com/access.php?fileid=66456

    Can you guys tell me your FPS.

    I'm getting 66 fps when the sun is completely blocked, and above 500 when not blocked at all.

    You can speed up the first situation up to 6 times by replacing 'wall' with 'bloomraycaster' in events 7 and 8.

    your new example seems to lack rays surface area, theres pretty much on or off, and nothing inbetween. thats where most of the cpu drain in our example comes from, the in betweens

    Actually, the ray-thingies come out depending on the settings of the light-object. If you make the shadow-filter a lighter colour, then you get less rays. If you make it darker, your sun will shine less brightly, but you will get more rays.

  • I've been tinkering with this thing some more. This now comes with bigger rays, brighter bloom, etc.

    It also changes colour depending on the position on screen for something of a sunrise effect.

    http://www.willhostforfood.com/access.php?fileid=66337

  • I can't get that to work. I've worked around it by changing the colour of the layer the light is on, and that does the trick.

  • Right now there is no function to change the shadow filter of a light object. I'd like to see one, please.

  • You mean like this?

    http://www.willhostforfood.com/access.php?fileid=66245

    I guess my computer is a little bit more powerful than yours.

    Your example ran at speeds between 70 and 120 FPS.

    My changes have upped this to speeds between 350 and 650 FPS.

    My bloomers go from the outside to the inside. This makes the bloom effect a little smoother.

    Also, I added a check to see if a bloomer is likely to be stuck in a wall, so that the loop can be skipped altogether for that bloomer. This can save huge amounts of time. For instance, of your light-object is behind the hill, it will save 180*42 overlap checks per frame.

    I changed the loop to a while loop for greater control over when it will stop looping. I noticed an issue with the while-loop, though. It doesn't work with normal overlap conditions. You need to use the advanced overlap check (in the system object).

  • ive been trying to make 3d polygon rotation for a while now, but i just gave up since i couldnt find the real math for perspective calcuations :L

    nice job on this, id love to see .3ds importing like i heard linkman had done a while ago.

    i might mod this to add mesh distorted faces! if its alright with you

    Sure, go ahead, if you can make sense of it.

  • Yeah, it's a mess. I cobbles it together just to see if I could, and not to see if I could do it neatly. I really need to restructure it if I'm to tell other people how I did it.

  • What is the trouble here?

  • A very long time ago. I dug up some of the math from the internet, and implemented it.

    Construct requires a different way of thinking from normal programming languages, and it takes some getting used to.

    The lack of a line function posed a bit of a challenge, but otherwise it worked very nicely.

  • Just a little finger-excercise.

    http://www.willhostforfood.com/access.php?fileid=66062

    It's completely undocumented, for now. Does anyone want to see a tutorial for this?

    If so, I really need to clean this up. Each point gets calculated 3 times, the line function is way too complicated since all the math for drawing the box is in there, and I need to clean up all the variables.

  • I remember those calculations from the time I spent much of my free time tinkering with Turbo Pascal (it was a long time ago, don't judge meeee!).

    I messed about a bit with your code, and got this:

    http://www.willhostforfood.com/access.php?fileid=66043

    I made the star graphic alpha channel a bit smoother, added calculations to make the star bigger as it gets closer to the viewer, and added a size variable to the star, so that the stars can now be of various sizes.

    Starfields are nice to tinker with.