msha91's Forum Posts

  • I made a game in construct 2. On localhost, it is working with sound but when I upload the project to the hosting server, the background music does not play on chrome browser.

    If you need the project details, I will provide you full details that construct 2 uses.

    Please see the following link for error so that you can have an idea of what's going on: https://drive.google.com/open?id=135HjO ... 8CQtRVZbac

  • dop2000, Many thanks ... you really are the best. Works like a charm. From now on, I'll be using 'On touched object' for buttons instead of 'Is touching'.

  • dop2000, Thanks,

    Now, it works without errors.

  • Yes, I wrote about the physics but now, I want it to have a sine behaviour after clicking on 'Sprite3' object. (not when dragging the 'Sprite')

  • dop2000, I removed all joints before disabling Physics but the error remains there.

    I don't want the drag and drop behaviour to the pendulum.

  • I am making a simple pendulum like to and fro motion, using sine behaviour, where the user first touches the 'Sprite2' object (the one that is colored in red) and then touches the 'Sprite3' object. By touching the 'Sprite3' object, I want the user to active the sine behaviour on the 'Sprite' Object and move to and fro as in the link. How can I do that ?

    Here is the .capx file for the reference.

    Thanks

  • The error is still there. The error shows when interacting with 'a' sprite. For 'b' and 'c' sprites, it works ok.

    I have seen the changes in the capx file (immovable and "on touched") and tested it on Chrome v63.

  • I don't want to make the pendulum static (immovable). In that case, how can I achieve the to and fro motion ?

  • I changed physics from box2d asm.js to box2d web but the error remains the same.

    Can you please explain what do you mean by 'avoid changing angle of physics by direct events' ? I mean how can I do that ?

  • I am making a pendulum game in construct 2 that involves physics behaviour. I got an runtime javascript abort() error in physics_behavior.js file, when I press release button on the first layout. I checked browser console but I can't figure out what is causing the layout to generate runtime error. I am attaching the link for the errors. Here are the links: https://imgur.com/u51ACQD and https://imgur.com/HoPGkgX

    Here is the .capx file: https://drive.google.com/open?id=1Ro_oz ... w77t4GCRq7

    You can run the game at your side, by following the text that is on the bottom left side of the layout.

    Any solution would be highly appreciated.

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have one logic in my mind, let's see if it works.

    I have to keep track of the previous layout by setting the global variable in 'Screen 4 Game Levels' event sheet and check for the level number and the previous layout variable.

  • I tried "Go to layout Game Level4" and "Go to layout (by name)" also but same behaviour. How can I make the collision happen only once. Can I use 'Trigger Once' Event or some other logic like loop ?

    It means that I have to keep the separate event sheets for 'Game Level1', 'Game Level2', 'Game Level3' and any other subsequent 'Game Level' layouts.

  • dop2000, Let's focus on the issue that I have with me.

    When you run the 'Screen 5' layout and drag the red colored pendulum to the right side and drop over there, it starts to move very much like pendulum, towards left side of the layout. The timer starts when it is dropped and when it reaches the left side of the layout, the timer stops and after 4 seconds, the game shows the next layout (which is 'Screen 5 Q2' that sets the pendulum animation frame on layout load to 1). The same logic and behaviour is applied to the next layout. Again, when the timer stops, the game waits for 4 seconds and the game shows the next layout (which is 'Screen 5 Q3' that sets the pendulum animation frame on layout load to 2). After 'Screen 5 Q3', it should move to the 'Game Level4' layout and that's is the issue that I am having with me.

    Now, if you run the whole project and progressively moves to the 'Screen 5' layout, then 'Screen 5 Q2' and then 'Screen 5 Q3' and after 'Screen 5 Q3', the game moves to the 'Screen 5' layout, I have noticed this by running the project in 'Debug' mode, but I can't find the reason that is causing 'Screen 5 Q3' layout to move to 'Screen 5'.

    I hope that you understand what I am explaining.

  • zenox98, I forgot to remove the addons because I was developing the game. Now, I have updated the link in the post. Please use that link.

  • I am making a game in construct 2. It is in development phase and working perfectly. I have added the new layout to the project and that new layout is making an issue that I am having right now. The issue is that when I run the project (or even run in debug mode), it is not showing that newly created layout as expected. Instead, It goes to the first layout.

    I have checked every events in event sheet but i can't find any event that navigates to the start of the project (in this case, 'Screen 5 Q3' to 'Game Level4'). I am attaching the .capx file for the reference. Here is the link:

    https://drive.google.com/open?id=1vYg4n ... YOqEnl11aO

    Any solutions would be highly appreciated.

    Thanks