kaveh's Forum Posts

  • 9 posts
  • Hi everyone,

    I’m trying to build a music player in Construct 2.

    The idea is that the user can upload an external audio file using the FileChooser and then play it inside the app.

    However, I have a problem:

    When I try to use the Audio → Play action, Construct always forces me to choose an internal project sound (like “SOUND_SAMPLE”).

    It does not allow me to use a URL or FileChooser.FileURLAt().

    If I try to type the URL manually, the action turns red and becomes invalid.

    Here is my event setup:

    • Line 3: FileChooser → On changed → AJAX.Request(FileChooser.FileURLAt())

    • Line 5: AJAX → On completed → Call "PlayExternal" (AJAX.LastData)

    • Line 6: Function → On "PlayExternal" → (I want to play the external file here)

    • Line 8: List → On double-clicked → Set playingSong to List.SelectedIndex

    My question:

    How can I correctly play an external audio file (a URL returned by FileChooser) in Construct 2?

    Does Construct 2 officially support playing audio from a URL, or does it only support internal project sounds?

    [Construct 2]

    Thanks!

  • Hi everyone,

    I have another issue in Construct 2.

    When I add the Audio → Play action, it always forces the “SOUND_SAMPLE” file in the Audio file field.

    I cannot delete it, remove it, or clear the field. It automatically comes back every time.

    I want to play an external audio file (URL from FileChooser), but the Play action does not let me remove the internal sound. Even if I try to type an expression, it turns red.

    My question:

    How can I completely remove or clear the internal SOUND_SAMPLE from the Play action so I can use my own expression (AJAX.LastData) instead?

    ( Construct 2)

    Thanks!

  • thanks, oosyrag I have to try it I think its hard works.

  • hi, guys how I can have crop tool on the uploaded photo whit chooser file one the net (Construct 2) who know a proper plugin our solution for this issue, for example, I upload (1800*700 pi) resolution photo and I wand crop it to ( 600*500 pi )sizes at the online team? something like photoshop crop tools

  • thanks dop2000 my purposes is I want to be able to delete the parts of other spirits our objects like (eraser tool ) but in the game mood, for example, this circular shape is a bullet and after collision whit, other objects should it does erase it the amount of bullet size.

  • dop2000 thanks for your feedback I want when the objects to Collision to the other objects it can erase the texture like the attached photo the sprite can digging any objects and the Fired bullet can do the same effects the aim is it.

  • Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • [img=

    ]

  • how we can uplued image from URL(file chooser plugin) instead of canvas and replace it?

  • 9 posts