Carbincopy's Forum Posts

  • How did you figure out clean path finding up/down stairs? Are you using the path finding behavior? I played with it but haven't come up with a good solution yet. I'm trying to figure something out for A.I. pathfinding in a lemmings style game

    I set boundaries so that the image could not cross them if collision = no path

    i set on on foot(block pinned to player) = collision with top of stairs then event upstairs

    = collision door 1 = event room 1

    = collision clock = event clock

    and so on.

  • Man, I've been thinking of making a game like this for such a long time. My only issue for it is the dialogue system and how I want to have lots of animations and such going on during them. How are you going to implement dialogue into this?

    On click ai = talk

    then (dialogue starts or select from dialogue menu)

    On selection = responce

    if (response = 0) then disable

    if (response = 1) then enable

    if selected = 1 then enable response

    if selected = 0 then disable response

    give each ai dialogue options

    if player and ai1 then these options

    if player and ai5 then these options

    and so on..........

    on time or event set focus to selected ai

    On focus start dialogue

    if time=30 event=bath (dialogue taking a bath)

    if doorbell=play.boorbell.wav (pathfind= location of mailbox) event=check mail (dialogue checking the mail)

    if ai collision with player event=catch player

    set path to location set follow for player or pin to ai

    dialogue ( ) on event done set pin to disabled

    It would look something like this (this is just markup of what it should do) not actual coding.

  • wmsgva maybe its not working because of the minification, try exporting without minificating or use square brackets notations within your plugin!

    Also it might not be playing if you are hosting them in dropbox.

  • Nice plugin. worked to play audio from the web.

    I did how ever wish there was more to this plugin.

    Like play loop or play once.

    I had to create a loop by setting

    If play loop ( compare time = play time ) on time = stop stream / play stream.

    and to play once to set the play button active again.

    I had to set wait time = (play time). stop stream and set button active

    sure that does not seam all that hard to do. But if you have 1,000+ sounds/songs that = 4,000+ code strings to turn them on and off as there is no way to set a default on/off once the sound/song finishes.

    I tried is playing and is not playing which in theory should have done this task. but no luck.

    I even tried everytick is playing or is not playing, but no luck.

    Any great ideas?

    Thanks in advance. Jeremy C.

  • A similar question answered by Eren can solve your issue, try the audiostream plugin...

    www*scirra*com/forum/plugin-audiostream_t150385

    (Dots plz instead of stars, as i cant post links yet)

    Thanks for the link. I will give it a try and get back to you about how it turns out.

    > Everybody says this is not supported because of the 2 file types. That is a no brainier.

    >

    > But Since we are compiling 2 versions of code for different platforms we know how to set audio for that which we are working on.

    >

    > Now to the question at hand. How to call an audio file from a web server.

    >

    you mean play an audio file? as mp3 etc? ... if so then u can use the video plugin i think its called you can play any file in it.. including mp3s since has the .h264 codec in it... however the file has to be on a public folder where anyone can read it.. outside that its pretty easy was a example in tutorials somewhere called ... playlist mp3 something...

    Thank you will look that up.

    Everybody says this is not supported because of the 2 file types. That is a no brainier.

    But Since we are compiling 2 versions of code for different platforms we know how to set audio for that which we are working on.

    Now to the question at hand. How to call an audio file from a web server.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello everybody,

    Things are moving along swimmingly.

    I have come up a great new idea for my next app, Just one problem.

    I would like to open an audio file from a website as to keep the over all size of the app small.

    Is there a way to use like on tap browser goto url which would play the sound with out closing out the app? or loading it in a new window? It would be even better if I could up on tap play (track) at location url.

    any ideas? Has anybody done this with construct 2?

    Is there something like Iheart radio to pull streams?

    Thanks in advance. Jeremy C.

    Bump...

    I did find this https://www.scirra.com/tutorials/536/audio-playing-sound-files-without-needing-to-import?action=lastpage&t=1470163107690#lastcomment, But it only talks about a web based app and does not relate to how to create a mobile app and pull sound from the web to use inside the app.

  • Hello everybody,

    Things are moving along swimmingly.

    I have come up a great new idea for my next app, Just one problem.

    I would like to open an audio file from a website as to keep the over all size of the app small.

    Is there a way to use like on tap browser goto url which would play the sound with out closing out the app? or loading it in a new window? It would be even better if I could up on tap play (track) at location url.

    any ideas? Has anybody done this with construct 2?

    Is there something like Iheart radio to pull streams?

    Thanks in advance. Jeremy C.

  • Hello Everybody,

    Back again with another advanced request, as I can pull data from a text file / xml file. Now I would like to be able to modify the text/XML file on a daily - bi weekly bases. But don't understand how to pull a web based file into an app.

    So let's say it is on my server at http://amusementwithatwist.com/ (file name) instead of inside of the app.

    what do I need to do to request the file?

  • You can adapt by creating a "rotate device" message. Create a Top layer for all layouts. Draw a large Black sprite and cover the entire layout. Place a "Rotate Device" message in the form of an image. Remember to set the parallax to 0,0 and the scale rate to 0 in the properties dialog for the layer. Use the browser object:

    Brower is Portrait > Layer Top > Set InVisible

    ___________________________________>Set time scale 0.0 (pauses the game)

    Brower is Landscape > Layer Top > Set Visible

    ___________________________________>Set time scale 1.0 (resumes game)

    Great Info Thanks..

    but noticed small issue with the code shown. Should read

    Brower is Portrait > Layer Top > Set Visible

    ___________________________________>Set time scale 0.0 (pauses the game)

    Brower is Landscape > Layer Top > Set InVisible

    ___________________________________>Set time scale 1.0 (resumes game)

    unless you want the other way then it would read

    Brower is Portrait > Layer Top > Set InVisible

    ___________________________________>Set time scale 1.0 (resumes game)

    Brower is Landscape > Layer Top > Set Visible

    ___________________________________>Set time scale 0.0 (pauses the game)

    But great information on how to get desired device layout. Thanks again Jeremy C.

  • Hello everybody,

    This is an advanced feature request or how would I enable such a feature.

    I have an idea of how I might get it to work but just want to see what others might have done to achieve this trick.

    My idea uses an out side html file with a counter that is trigger once if true and then pre-loaded on start of layout something like how fb scores are pulled into the game. Then using a check if install = set amount toggle group disabled, Thus only x number of people get a specific set of limited features.

    My other Idea uses a button, on click if counter=>x set installed=true, load counter.

    else if counter=x toggle group disabled and delete button.

    my third idea is to create 2 .apk set one active now with all the features and set other to publish after x days pass with some of the features disabled.

    any ideas or know of a plugin that could do this trick?

    Thanks in advanced and have fun and enjoy. Jeremy C.

  • I was testing random stuff

    So here is a happy rainbow kinda thingie!

    HappyRainbow.capx

    Actually the rainbow is animated and flows to the right nicely

    This uses the Tiled Sprite plugin

    I'm not sure I'll use this for my project because the fps are dropping fast with many nodes, but it could be super handy to create all kind of moving things, escalators, hydraulic pipes, tank tracks, conveyor belts...lemo2013-02-19 06:18:02

    Plugin is located here...

  • >

    > > export your project in "www" subfolder of "your project" folder.

    > >

    > > Now Open "your project" folder

    > > now open "intelxdk.config.additions" xml file in your favorate editor or you can open in intel XDK too

    > > Ctrl + A & del everything

    > > and paste below codes

    > >

    > > <preference name="debuggable" value="false" />

    > > <intelxdk:crosswalk xwalk-command-line="--ignore-gpu-blacklist" />

    > > <intelxdk:crosswalk xwalk-command-line="--disable-pull-to-refresh-effect" />

    > > <preference name="CrosswalkAnimatable" value="false" />

    > >

    > > save it

    > >

    > > This Problem is covered in my this Tutorial

    > >

    >

    > I will give this a try right now.

    >

    I tried this and still get build error on all my apps. I did it to all just in case it might be helpful. but no go.

    Ok! Here is an update. I don't have a clue as what the issue really was, But here is what I did differently and seams to have fixed the problem.

    1. started with no plugins - exported cordova with xdk - minified (built successful)

    2. added plugins one at a time and built each time successful

    In intel xdk instead of using cordova directory which I had done in all prior attempts, I used all plugins form https://github.com

    not sure if the cordova directory is out dated with older versions of the plugins, but none the less I now have my apps ready for google play store and will stay away from cordova directory in the future.

  • > export your project in "www" subfolder of "your project" folder.

    >

    > Now Open "your project" folder

    > now open "intelxdk.config.additions" xml file in your favorate editor or you can open in intel XDK too

    > Ctrl + A & del everything

    > and paste below codes

    >

    > <preference name="debuggable" value="false" />

    > <intelxdk:crosswalk xwalk-command-line="--ignore-gpu-blacklist" />

    > <intelxdk:crosswalk xwalk-command-line="--disable-pull-to-refresh-effect" />

    > <preference name="CrosswalkAnimatable" value="false" />

    >

    > save it

    >

    > This Problem is covered in my this Tutorial

    >

    I will give this a try right now.

    I tried this and still get build error on all my apps. I did it to all just in case it might be helpful. but no go.