RBuster's Recent Forum Activity

  • I'm using different tags for each sound effect now, to control it separately. I just want to control all the sound effects (mute mode) one time.

  • Please, some help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How can I do to mute the sound effects of my game without mute the background music. I know I can do it using tags, but there are so many files that I think that must have another solution to simplify this process. I intend to save the user definition (muted/not muted) in the local storage. Any sugestion?

    Thanks in advance.

  • [quote:1ct5zbh7] Do you have an iPhone to try it? Do I need to add new devices to Provision file to allow testing?

    Yes for both questions.

    [quote:1ct5zbh7]No I am not using the event. I am reading few thread that talking about distorted sounds. Will let you know the finding

    Sometimes the audio is played in an overlapping way. So, you need to use that "trigger" to restrict it to play once.

  • Okay, so this is definitely Facepalm worthy!

    I didnt know that was a fishing MUTE button on Apple Devices

    Sorry this is my first experience with Apple iPad (I borrowed it to test the game). The audio was always playing!

    Serious?

    Don't worry. Things like this happen to me all the time

    [quote:2aqlt51l]Only thing is, few sound are bit distorted, I guess I need to encode with higher frequency?

    I don't know if the problem is the frequency. Did you use the "Trigger once while true" to reproduce your audio file?

  • RenatoB yes man. Its all set to Landscape. Now, I am even calling the browser->Landscape action.

    The browser action didn't work for me. You had commented about the cranberry orientation plugin. I tried to use but when the ads opened, the screen decreased and stood in the corner. A very strange behaviour. Did you removed this plugin and others from the project panel, right?

    [quote:18ffldkp]The sound files are all in m4a format too

    Did you create the sound files or encoded them? Did you try to use other sound files to verify whether the problem are your files or not?

  • Glad to know that you got it working! Yes that was the trick, remove plugins included in Additions.xml from Plugin Manager

    (For others, this is only for iOS, on Android you need to manually add plugins using Plugin Management screen and clear the Addition.xml file)

    And yes, I have included you code both on top and bottom of the file still no result. Have yuu added the device Orientation plugin by any chance? Also how did you make ur Sound work?

    Man, you helped me a lot. More than a month trying to solve this issue. Thank you!

    I don't understand why the code isn't working for you. Did you check the orientation in the C2 panel and in the Intex XDK build settings? Both have to be set to the landscape orientation.

    About the sound, I didn't do nothing. Did you verify if the m4a files are in the media folder?

  • SamRock

    I had included the chartboost plugin through plugin manager, as the intel support asked for. I removed it and the game was built. I have some tests and now the Revmob/Chartboost ads are working thanks for your information. Thank you!

    The orientation code is working very well for me. Did you inserted this code in the addition file? I put it in the end. Did you try it?

  • SamRock

    No luck! I got the same error.

    My addition file;

    <intelxdk:plugin intelxdk:name="https://github.com/cranberrygame/cordova-plugin-ad-chartboost" intelxdk:value="https://github.com/cranberrygame/cordova-plugin-ad-chartboost" />
    <platform name="ios">
        <preference name="Orientation" value="landscape" />
    </platform>[/code:1l21e3l4]
    Build log: 
    ** BUILD FAILED **
    
    The following build commands failed:
    	CompileC build/BS\ Free.build/Release-iphoneos/BS\ Free.build/Objects-normal/armv7/ChartboostPlugin.o BS\ Free/Plugins/cordova-plugin-ad-chartboost/ChartboostPlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    	CompileC build/BS\ Free.build/Release-iphoneos/BS\ Free.build/Objects-normal/armv7s/ChartboostPlugin.o BS\ Free/Plugins/cordova-plugin-ad-chartboost/ChartboostPlugin.m normal armv7s objective-c com.apple.compilers.llvm.clang.1_0.compiler
    (2 failures)
    Error code 65 for command: xcodebuild with args: -xcconfig,.../BS_iOS_Final/platforms/ios/cordova/build-release.xcconfig,-project,BS Free.xcodeproj,ARCHS=armv7 armv7s arm64,-target,BS,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 armv7s arm64,CONFIGURATION_BUILD_DIR=.../BS_iOS_Final/platforms/ios/build/device,SHARED_PRECOMPS_DIR=.../BS_iOS_Final/platforms/ios/build/sharedpch
    Command finished with error code 2: .../BS_iOS_Final/platforms/ios/cordova/build --release,--device
    ERROR building one of the platforms: Error: .../BS_iOS_Final/platforms/ios/cordova/build: Command failed with exit code 2
    You may not have the required environment or OS to build this project
    Error: .../BS_iOS_Final/platforms/ios/cordova/build: Command failed with exit code 2
        at ChildProcess.whenDone (/Developer/cordova/5.1.1/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
        at ChildProcess.EventEmitter.emit (events.js:98:17)
        at maybeClose (child_process.js:753:16)
        at Process.ChildProcess._handle.onexit (child_process.js:820:5)
  • SamRock

    Thank you for the tips. I'll do some tests, inclusively with the orientation lock code, and return after it to tell you the news (a good ones, I hope so! ).

  • SamRock

    I can't use cranberry plugins with CLI 5.1. I tried several times and of the several ways and I always get an error message when try to build an iOS app/game in the Intel XDK. I tried to use chartboost and revmob, the orientation lock as well. I've problem with the Google Analytics too. I want to use others ads services and I can't. Everything worked before the last Intel XDK updates.

    When you say to leave addition.xml as it is, you mean as it is after export it to cordova, with references of the whole plugins, right? But if you are using the CLI 5.1 version you need to leave addition file blank, as I know. Can you give me more information about your app configuration in the Intel XDK?

    I tested the orientation lock code that I posted in the forum and it works very for me, but only in CLI 5.1 version. I also tried the broswer action, but it not worked too. I don't know what I've to do anymore to fix it.

    I have only one issue with audio in the iOS game: the sound only plays after the player touch the screen.

  • Nice game hazneliel

    hazneliel and SamRock

    I'm having problems to lock the orientation in the landscape mode when I use the Intel XDK to build a iOS application. Normally I use a code to fix it, but it only works if I build the app using the CLI 5.1. Before that, I used a cranberry plugin that doesn't work anymore. By the way, any of the cranberry plugins didn't work in the CLI 5.1 version (I already downloaded the latest versions). How can you do to fix this orientation problem? Do you use CLI 4.2 or 5.1 to build your games? Did you have success to publish your games with cranberry plugins in the CLI 5.1 version? I really appreciate any suggestion/help to fix this problem.

    Thanks in advance

RBuster's avatar

RBuster

Early Adopter

Member since 29 Oct, 2012

Twitter
RBuster has 2 followers

Connect with RBuster

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • 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
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies