ComGamer's Recent Forum Activity

  • No problem :-),

    I tried it in Firefox but there are other styling problems.

    I think I have to live with the blue hover color.

    Thank you for your time!

    Wim

  • Thank you lennaert, but it doesn't work as expected.

    The background-color of the complete dropdown changes, not the background color of the item I'm pointing at, that is still blue.

    So still looking for the correct property.

    Wim

  • Thank you for your reaction, but I can't find out wich of these property names would change the color 'on hover'. I already use all the other properties.

  • Hi,

    Wich is the property name of the background-color on hover in a dropdown list (list plugin)? The standard color is blue, but I want to change it. I successfully changed font, color, ... with 'Set CSS style' so I know how to do this. Finding property names of common properties is no problem, but I can't find the property name of the background anywhere because it's not a standard property.

    Screenshot (I want to change the blue):

    i.imgur.com/lwXPRTs.png

    Screenshot of my code to change the style of the list:

    i.imgur.com/9Yim8Ne.png

    Thanks!

    Wim

    Tagged:

  • dop2000,

    Thank you very much! This is such a good and simple solution.

  • Hi,

    I want to change the animation of a sprite that is spawned as a particle, but this doesn't happen immediately.

    I've build a small test project to show the problem (also see screenshot below):

    https://github.com/WimDeBacker/WimDeBacker/blob/WimDeBacker-TestSpawnSprite/TestSpawnSprite.c3p

    Setting the particle object to the sprite is done immediately, but then changing the animation of the last spawned sprites doesn't work. The animation of the sprites that where spawned the previous mouseclick change like expected (become red in the example), but the last spawned sprites stay green.

  • Thank you very much! Both your solutions are almost the same now.

    Wim

  • Dear Maverick1912 and dop2000,

    Thank you for your answers!

    The method of Maveric1912 seems the best of the two answers to me.

    Maverick, do you have a .c3p file of upbeat-payne-96f97b.netlify.app ?

    In the solution of dop2000 recalculating the sectors for every possible angle seems very complex (e.g. every quadrant needs a completely different polygon)

    Thanks!

    Wim

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The problem is that the DrawingCanvas object doesn't have an Arc-function. (I just added it to the feature requests.) That would probably be the easiest way, but isn't available for Construct3 (why??). It was available in Construct 2 and there's even a nice tutorial: https://www.construct.net/en/tutorials/draw-slices-dynamically-label-1295.

    Some requirements for the arc/pie:

    - Pixel-perfect alignment with backgroundpicture in the project.

    - The pie must change every second because it's a kind of clock.

    I tried:

    - iFrame and use the Arc function of the Canvas, but aligning the arc with the background picture and make this work on every platform and screen size seems to be very complex.

    - I thought that maybe by using scripting, I could get the context of the DrawingCanvas and use that to draw the arc, but 'GetContext' isn't available as a method of the Drawing Canvas Script Interface.

    Thanks!

    Wim

    Tagged:

  • Oké, thanks! Now I can put the sound into Binary Data and save the Binary Data to LocalStorage.

    What I can't get working:

    1. loading the data from LocalStorage into BinaryData,

    -> LocalStorage: Get item "audiofile" into BinaryData

    The length of BinaryData stays zero after:

    + LocalStorage: On item "audiofile" get

    -> Text: Append "equal?: " & BinaryData.ByteLength

    2. How can I put this BinaryData somewhere I can access by a URL, because a URL is what the audio-object needs "add remote URL". Or is there another way to put the BinaryData into the Audio-object?

    Many thanks in advance (and sorry for my unclear English)

    Wim

  • Maybe I can just always reload the file from the local drive, but then I need the path to the file. Is there a way to get the path to the file from FileChooser? I can get the name of the file, but not the path.

    Wim

  • I want the user to be able to select an audio file (ogg) from his local drive. Then saving the game and replay the audio file the next time the user opens the game.

    When opening a file with FileChooser it returns a URL to the file. I can use this URL to play the audio (audio Add remote URL).

    I can save this URL, but next time I open the game the audio file at the URL doesn't exist anymore.

    So I already figured out I don't have to save the URL but the audio-file itself.

    I tried with LocalStorage, tried to convert it to BinaryData, ... but can't fetch the data of the audio file.

    My project: drive.google.com/file/d/1eFghbP7HwMKFULSJ_78zX5QiwOzqmp5u/view

    Thanks!

    Wim

ComGamer's avatar

ComGamer

Member since 20 Oct, 2017

Twitter
ComGamer has 1 followers

Connect with ComGamer