R0J0hound's Recent Forum Activity

  • What is your graphics card?

    You may be able to fix it by adjusting your cards settings.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I updated the example in my previous post. I found a way to generate the window shape faster, but more importantly I implemented the ability to save and load the regions to/from files. Loading is almost instant so pre-generating the window shapes into files is the way to go if you want custom shaped windows.

  • Here is the unacceptably slow way I have found to make custom shaped windows:

    http://dl.dropbox.com/u/5426011/examples3/customwindow.cap made in 0.99.96

    The main bottleneck is generating the region, so a fully dynamic window is not possible with this method. In order for this to be usable for large windows the region would have to pre-generated... yet another can of worms.

  • C2 already seems very versatile. Here is a slot machine game.

    http://dl.dropbox.com/u/5426011/c2/slot.capx

    edit:

    updated capx r99

    http://dl.dropbox.com/u/5426011/examples12/slot2.capx

  • All object types and all behaviors get their own OID in order from 0 on.

    The order of the object bar kind of shows what the order the OIDs will be a runtime, but no there is no way to set what the OID of an object type will be.

    It's best to avoid using the oid to identify object types in a save file because oids are only guaranteed to be the same for that object type for the duration that the game is run.

    What you can do when you save is ignore what the oid of the object is and use you own numbers:

    ex

    Sprite -> 1

    Sprite2 ->4

    Sprite3 -> 703 ...

    and when you load change from those values to what the OID of the object is:

    if loadedValue == 1

    then oidToUse = Sprite.OID

    if loadedValue == 4

    then oidToUse = Sprite2.OID

    if loadedValue == 703

    then oidToUse = Sprite3.OID

    ...and so on.

  • I was able to make an arbitrary shaped window by combining many single pixel regions but as KrushBrother said it ended up being intolerably slow. There is another method for making windows transparent called layered windows, but I haven't been able to get it to work correctly, it seems to be conflicting with the direct3d surface. I'll have another look at it and see what I can come up with.

    Reference of ways to make window transparent:

    http://www.flipcode.com/archives/Win32_ ... ning.shtml

  • yep

  • Here's an example using python and the ctypes library:

    http://dl.dropbox.com/u/5426011/examples3/dragdrop.zip

  • I suspect it's unrelated to Construct since at no point is Active Movie used in Construct.

  • In an effort to nail down the rules:

    1. When an object is created it becomes the only picked object of that type for the actions below it and in sub-events of the event the object was created in.

    2. The new object can't be picked in the following events with the same nesting level as the event it was created in (unless it was created in a top level event).

    3. Once a new toplevel event is reached the new object can be picked like normal.

    To illustrate:

    https://www.dropbox.com/s/rik6uta4kuojf ... g.GIF?dl=0

  • Hey cool,

    Thanks PixelRebirth, I was not aware that created objects could be picked in the next toplevel event. That will make my eventing easier than waiting till the next tick. My assumption came by trial and error, but obviously I didn't try everything.

    So here's a better solution to the initial problem:

    Instead of rotating the objects the next tick, just add another toplevel "Start of Layout" event.

    http://dl.dropbox.com/u/5426011/fixed/ex_pick2.cap

    Cheers

  • When you create an object it becomes the only picked object for the remainder of that event. After that the object cannot be picked until the next tick (or frame).

    A way around it is to do the actions on the next tick, or in our case tick 1.

    + System: TickCount Equal to 1
    -> Sprite: Rotate 90 degrees clockwise
    -> Sprite: Set filter to Red
    [/code:2zpv0m47]
    
    [url]http://dl.dropbox.com/u/5426011/fixed/ex_pick.cap[/url]
R0J0hound's avatar

R0J0hound

Member since 15 Jun, 2009

Twitter
R0J0hound has 155 followers

Connect with R0J0hound