Animate's Recent Forum Activity

  • Hi community and Ashley

    I am loading and importing text through an xml and into a text object. Some of the loaded words are short and some are very long.

    On runtime, HOW can i make the text change its font size in order to fit into the text box without getting cut off?

    Thanks in advanced for the help...

  • justifun, i tried your method but the group of created sprites all center on top of one another, not like a combined group that moves to the center at their center point of origin.

    Would you be able to to demonstrate to a brief .CAPX. or perhaps a simpler method using the sprite.witdth expression for the entire group if possible?

  • Thanks

    I believe the second option is the way to go.

    Does anybody know the expression or the automated way through events that this can be done in runtime? Or an even better alternative, as i believe that there has to be a more simplified way to this?

  • Hi community,

    How can i group a collection of sprites that are created on runtime and have them center on-screen as the combined group or with their combined origin point?

    Many thanks in advanced.

  • Awesome plugin wmsgva !.

    Can it be possible to retrive the audio stream URL from an XML and then have it played through your plugin. How can this be achieved?

    Many thanks for your assistance.

  • Hi community and Ashley,

    I am working on a project with thousands of .OGG audio files hosted on a server that need to be played on cue when triggered through a C2 project..

    My question is the following, if i wanted to play an .OGG located on a server, how can i play the file within C2? How can i achieve this by using the AJAX object to retrieve the URL of the audio file from an XML file and then play back from within C2?.

    If anyone can help the community can certainly benefit as I have seen multiple users ask a similar questions on the forums with no clear response.

    This works for audio files that are stored in the media folder. What about sound files that are stored in another server? Similar to mchulet, i am working currently in a project with thousands of audio files.

    How would i request the URL of the audio files on another server, would it be through an AJAX get request?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you Magistross for taking the time to upload the sample and for everyone else who assisted. I was able to find a solution by using both the AJAX and XML object as shown.

  • Yes, I agree.

    As Jermfire , how does one request an XML from an URL which is hosted on a server? Like many, I have not been able to find a clear solution to this, most tutorials only demonstrate through project file import.

  • Thanks Kyatric i will look again at this tutorial.

    Magistross, can you please share how you were able to do it? I was able to import the data through the AJAX object but have not been able through the official XML plugin directly . Is it possible for you to upload the .CAPX. to share with the community. I would be thankful as i know this has come up on many instances in the forum...

  • Thanks for the assistance blackhornet & Ashley . Unfortunately, the project requires that the XML loads through an URL as there are 100's based on the game category and they are generated through an API.

    Kyatric Where can i find the XML project you mentioned?. I search through the forums and tutorials with no luck. Can you point me to the right location. It appears that it will assist me with the parsing of the data...

  • Hello community,

    I am having trouble loading the XML below through the XML object. On import, i get multiple syntax errors and it will not load. On paper it seems to be a straight forward process but i might be missing something. Ashley , Yann Can you please confirm if this XML can be imported through the native XML object. If not, is there an alternative way to grab the data. The goal is for the hosted game to load the xml from an URL on runtime, grab and parse the data. Thank you in advanced for the assistance provided...

    <?xml version="1.0"?>
    <words>
    <meta>
    <user_id>85826</user_id>
    <word_order>e</word_order>
    </meta>
    <word>
    <word>
    <![CDATA[ flip-flop ]]>
    </word>
    <definition>
    <![CDATA[ a thonged sandal and its clicking sound ]]>
    </definition>
    <wordid>
    <![CDATA[ 367925 ]]>
    </wordid>
    <sentenceid>
    <![CDATA[ 653737 ]]>
    </sentenceid>
    <soundfile>
    <![CDATA[ /sounds/f/flip_flop.mp3 ]]>
    </soundfile>
    <definitionfile>
    <![CDATA[ /definitionSounds/f/flip-flop_50d41874a9c93.mp3 ]]>
    </definitionfile>
    <definition_option id="460293" soundfile="/sounds/s/st_.mp3">
    <![CDATA[ St. ]]>
    </definition_option>
    <definition_option id="310953" soundfile="/sounds/i/it_s.mp3">
    <![CDATA[ it's ]]>
    </definition_option>
    <definition_option id="653737" soundfile="/sounds/f/flip_flop.mp3">
    <![CDATA[ flip-flop ]]>
    </definition_option>
    </word>
    <word>
    <word>
    <![CDATA[ it's ]]>
    </word>
    <definition>
    <![CDATA[ contraction of "it is" ]]>
    </definition>
    <wordid>
    <![CDATA[ 13637 ]]>
    </wordid>
    <sentenceid>
    <![CDATA[ 310953 ]]>
    </sentenceid>
    <soundfile>
    <![CDATA[ /sounds/i/it_s.mp3 ]]>
    </soundfile>
    <definitionfile>
    <![CDATA[ /definitionSounds/i/it_s_50cb3fe723f2d.mp3 ]]>
    </definitionfile>
    <definition_option id="653737" soundfile="/sounds/f/flip_flop.mp3">
    <![CDATA[ flip-flop ]]>
    </definition_option>
    <definition_option id="310953" soundfile="/sounds/i/it_s.mp3">
    <![CDATA[ it's ]]>
    </definition_option>
    <definition_option id="460293" soundfile="/sounds/s/st_.mp3">
    <![CDATA[ St. ]]>
    </definition_option>
    </word>
    <word>
    <word>
    <![CDATA[ St. ]]>
    </word>
    <definition>
    <![CDATA[ abbreviation for "street" ]]>
    </definition>
    <wordid>
    <![CDATA[ 29966 ]]>
    </wordid>
    <sentenceid>
    <![CDATA[ 460293 ]]>
    </sentenceid>
    <soundfile>
    <![CDATA[ /sounds/s/st_.mp3 ]]>
    </soundfile>
    <definitionfile>
    <![CDATA[ /definitionSounds/s/St._50cb531accd9f.mp3 ]]>
    </definitionfile>
    <definition_option id="653737" soundfile="/sounds/f/flip_flop.mp3">
    <![CDATA[ flip-flop ]]>
    </definition_option>
    <definition_option id="310953" soundfile="/sounds/i/it_s.mp3">
    <![CDATA[ it's ]]>
    </definition_option>
    <definition_option id="460293" soundfile="/sounds/s/st_.mp3">
    <![CDATA[ St. ]]>
    </definition_option>
    </word>
    </words>[/code:3dvumhzi]
Animate's avatar

Animate

Member since 9 Nov, 2011

Twitter
Animate has 2 followers

Trophy Case

  • 13-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies