gamecherry's Recent Forum Activity

  • You're correct. I have the flu...my brain is not at optimal performance I am getting the correct angles....perhaps, my code is wonky.

    Thanks for the reply.

  • Hello All and thank you for looking

    I have 2 objects; an enemy & a hero. I want the enemy to change animations depending on the angle between the 2.....but, I cannot figure it out.

    If I use int(angle(hero.X, hero.Y, enemy.X, enemy.Y)) I can get a number but it changes as the hero moves closer or further away form the enemy (doesn't follow a set perimeter.)

    In the diagram, the dark blue circle is at ~330 degrees but the the light blue circle is not. I want C2 to return the same degree regardless of how close/far the circle is and instead just give me the angle it sits on? How do I go about setting a command that returns the angle I'm looking for?

    Thank you for looking

  • the only thing I have left to try is a loader layout and hope that fixes the problem, otherwise I'm screwed.

  • Elios, thanks for the capx! I ended up testing the distance between my character and the water noise and adjusting volume accordingly. I'm curious if we came to the same conclusion mechanically.

    Thank you so much for the assist!

  • exactly what I was thinking but I don't know how to fix that. I don't even know how to test for that. Do you?

    To the Google Tubes I go!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So, my thinking is that none of the files are bad, images or audio. I think it's just not pushing the whole file out and the errors are the files it was in the middle of loading when the data stopped. Otherwise the images/files would always be same or at least not load.

    And it doesn't always hang - 1 in 10 times it loads completely.

  • I've now run the game in both Chrome & FireFox numerous times.

    I've compiled it several times as well with & without minify & with/without image compression.

    I've swapped out the erred images in engine and compiled - several times.

    The game still hangs on loading screen.

    It will hang at any time in the process between 50% - 99% Maybe one in 10 times it doesn't hang.

    It's always an image error.

    The image that erred is almost always different.

    A browser refresh loads the game every time.

    In Chrome error reads as:

    Error loading image 'http://gamecherry.com/mhsmbtest3845LQ6/images/wcfacade-sheet0.png':

    Event {clipboardData: undefined, path: NodeList[1], cancelBubble: false, returnValue: true, srcElement: img…}

    c2runtime.js:95

    In FireFox it reads as:

    Error: Image corrupt or truncated: http://gamecherry.com/mhsmbtest3845LQ6/ ... sheet0.png

    Source File: http://gamecherry.com/mhsmbtest3845LQ6/ ... sheet0.png

    Line: 0

    The erred image is almost always different & that's why diff. images in the 2 examples.

    I don't know why this is happening. Has anyone else experienced this?

  • Blackhornet, thanks so much! IDK what that means but at least I have a place to start looking. This is great!

  • thanks for taking the time Zenox. Here's the link to the game - http://gamecherry.com/mhsmb383/

  • Hello and thanks for looking.

    I have an object that makes noise. I would like that noise to increase in volume as I get closer to it and decrease as I move away from it. I know there's positional audio & object audio options but the manual says these aren't supported in all browsers. So, I'm thinking Lerp is my answer. I've had limited success with Lerp in the past (I'm not as bright as I'd like to be )

    Does anyone know how I would go about achieving this? Thanks.

  • Hello and thanks for looking.

    When loading my game for the first time from my website (through a browser - Chrome), it hangs at about the 80% mark (C2 logo - loading bar.)

    On refresh, the bar turns red then blue and finishes loading.

    Has anyone else experienced this? What can I do?

    My file is about 25MB and the website is GoDaddy (which I pay for.)

    Do you think it's C2, file size, GoDaddy...IDK?

    Thanks.

  • ramones, thanks for the reply. This is (almost) exactly what I ended up doing. I used "set text" instead of an index array though.

gamecherry's avatar

gamecherry

Member since 12 Mar, 2012

None one is following gamecherry yet!

Connect with gamecherry

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies