Aphrodite's Recent Forum Activity

  • For instance, I created a global variable in one event sheet and used it in the same event sheet, thinking I would need it in other layouts. Turns out I had to reuse part of the logic using the global variable in another layout.

    At this point I had to copy the global variable to my "global variable dump" event sheet and manually change the references in the events from the old variable to the newly created one.

    I don't really understand why you 'd have to do this, using the "Move to event sheet" option let's you move the variable across event sheet without needing any event editing at all, or maybe I understood wrong

  • here is the whole BBCode of the spam post concerned:

    https://www.dropbox.com/s/y3sn3ecei0bnko8/spam.txt

    as you can see, it is a big mess and I don't exactly remember right now what was the exact parts, hope that still helps though

    Tom

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think the save/load isn't using webstorage, but indexedDB, I don't think it is possible to flush it out in vanilla C2 though :/, could be wrong

  • is there any chance, to scale the windows size for the node webkit output mode? for example: im programming a retro game in 300x200 pixel, but i want the output x2 or x4, in 600x200 or 1200x400 so the screen is bigger and the game looks more pixelated.

    Letterbox integer scale does exactly that, however it puts black bars on the sides

  • I think you can use the operators:

    =, <>, <, <=, >, >=, & (and), | (or) in expressions, for exemple:

    Set local key: "SavedSkore" to (LEVEL > HIGHSCORE ? HIGHSCORE : "0").

    Will set the local key "SavedSkore" to HIGHSCORE if LEVEL is superior to HIGHSCORE, else, it will set it to 0 (it is just an exemple)

    you could also use a function, have the comparison done inside the function, and return a different value depending on the value ( function.Call() will execute a function, and return it's return value)

  • It is only speculations, we do not know anything at the end, and the blog post suggest more that you'd have to pay for extra stuffs more than the multiplayer itself, so we shall wait and see..

  • In your Projects settings, next to "Fullscreen Scaling", you probably have it set to "High Quality", try setting it to Low Quality. When you try going into fullscreen, things will seem a bit more stretched but will keep the same FPS as when it was windowed

    ^this, also try to let the user being able to set it himself (there is a system action for that, set fullscreen scaling if I am correct)

  • I think you can only select the instance the tick it is created in the same subset of events, and nowhere else, Might be wrong though

  • I kind of got lost there. Can you answer these questions.

    1. Can you explain if I need to set all 7 parameters (through events) if I only need to recolor the red parts of my character sprite?

    I did this:

    +On start of layout

    ->Enable Replace Color

    ->Set effect Replace Color index 3 to 0 (don't know what this means, just experimenting)

    doesn't change any color

    Sorry for not being clear, to use this effect you have to set a color to change, then a color to replace it, it is not based on the color palette, but on the value of the color (separated in 3 values, R G and B), each of them goes from 0 to 255.

    to change one color in particular, you have to know those 3 values of the color (an image editor will tell you easily), then you set those value in the effect proprieties R source, G source, B source (that means you are saying that this color will be changed to something else)

    When it is done, you have to change the value of R replace, G replace, B replace to the color you want, I suppose you want to change this with events, it is indeed :

    "set effect ReplaceColor, parameter index #, Value #", the parameter indexes are the one I've said before, so you would have to change the parameter 3 (to set the R replace), the parameter 4 (to set the G replace), and the parameter 5 (to set the B replace); that means that this is the color it'll change into, you can also set the tolerance, if you want color that are close enough to be changed too

    Also, the webGL support works in preview (if the browser supports it, that shouldn't be a problem on desktop, except if you are using chrome on XP/Vista)

    hope that helps.

  • FYI all people who want it working : On the winehq support, they told me the file system (load/save and load license) works well on their test with R163 and wine 1.7.14.

    I personnally don't use wine as they use it, I directly use the wine app from winebottler and it didn't work for me with 1.7.14 - I don't know why.

    BUT, it works perfectly now with the latest 1.7.15 !

    Only problem for now, I can't move/pan in the layout (The move/pan works only under crossover 13.1 but they don't support wine 1.7.15 yet).

    For comparaison, The layout of Multimedia Fusion/Fusion 2.5 is working well, so I don't know what is the difference between the both workspaces (@Ashley if you can help on this, you may know what technology is using your workspace renderer, directx9, gdi.... ? I really don't know anything about this sorry).

    Preview isn't working neither, and I'm pretty sure this is cause the wine bottle doesn't make the link to the mac localhost....

    I cannot tell, but maybe the preview over LAN would make it possible to preview it (since you connect to the IP rather than the localhost)

  • I will try now using events. I tried replace color properties yesterday.

    can you tell me what do I need to put in the parameter index for replace color? and do I need to trigger the replace color continuously or just once (like start of layout) ?

    You have to change those parameter:

    0:The R(ed) indice of the color you want to change

    1:The G(reen) indice of the color you want to change

    2:The B(lue) indice of the color you want to change

    3:The R(ed) indice of the color you change into

    4:The G(reen) indice of the color you change into

    5:The B(lue) indice of the color you change into

    For exemple, to change white to black, you'd have to have:

    parameter 0 = 255

    parameter 1 = 255

    parameter 2 = 255

    parameter 3 = 0

    parameter 4 = 0

    parameter 5 = 0

    The parameter 6 changes the tolerence, I let it to 1 personnally, basically, it indicate to change also colors close to the one you have chosen

    When the effect is applied, you don't need to set it continuously, however, it is a webGL effect, and will not be visible everywhere, also, change color is kind of an intensive effect (since it has to check the colors of the picture), so I recommand having something to back it up in case it doesn't work on some computer, or if you want the user to turn it off

    (the system expression Effects are supported will help you supporting configurations without webGL)

  • Aphrodite,

    Just thinking out loud: Wouldn't using startangle+degrees for max and startangle-degrees for min solve that issue?

    Not sure, since I think C2's angle logic passes from 0 to 350 and not to -10 for exemple (not 100% sure about that), so if you clamp it to -10, it'll never clamp it

    However, by using angle() I think you should be able to go through:

    I suggest using a function with One parameter:

    On call Function "Normal_Angle" : Set return value to Angle(0, 0, cos(Function.Param(0), sin(Function.Param(0))

    Set angle to : clamp(Function.Call("Normal_Angle", Self.Angle), Function.Call("Normal_Angle", Min_Angle), Function.Call("Normal_Angle", Max_Angle))

    Where Min_angle and Max_Angle are the limit angles, that should work even if C2 changes it's way to interpret angles I think, not tested

Aphrodite's avatar

Aphrodite

Member since 20 Dec, 2011

Twitter
Aphrodite has 2 followers

Trophy Case

  • 12-Year Club
  • 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
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies