ramones's Recent Forum Activity

  • The problem is newly created objects aren't properly created until the next top-level event (see this). Which means you can't pick those rope parts by UID until after event 2 has finished completely. You might try creating all the rope parts first and then looping through them and joining them together in the next top-level event. For example: physicsBridge.capx (r119)

  • Link to .capx file (required!):

    n/a

    Steps to reproduce:

    1. Open C2

    2. Open a project (eg. Space Blaster)

    3. Open the z-order window

    4. Open another project (eg. Ghost Shooter)

    ________________________

    *edit*

    Also:

    1. Open C2 project

    2. Switch to event sheet

    3. Open z-order window in View ribbon

    4. C2 crashes

    ________________________

    Observed result:

    C2 crashes.

    Expected result:

    ...

    Browsers affected:

    n/a

    Operating system & service pack:

    Win 8 64-bit

    Construct 2 version:

    r120

  • Or

    Mouse: NOT Cursor is over object

    System: Trigger Once

       -> Actions

  • Make your own timer: Tutorial

  • I get 60 fps in Chrome but only 30-40 in Firefox too. But I think it's the enemy AI loop that's killing the framerate, not the stars.

  • The weird thing is: Sound effects do seem to work inside IE. Wouldn't he normally have those stored as M4A, as well?

    Are they working for you? There are no sounds playing for me at all. I can see in the developer tools that the sound is downloading but the content type is 'text/plain' instead of 'audio/mp4'.

  • Try creating a .htaccess file on your server and adding this line:

    AddType audio/mp4 m4a

    Or if .htaccess already exists just add that line to the bottom of it.

    <img src="https://dl.dropbox.com/u/8367729/construct/pics/htaccess.png" border="0" />

  • You can't just load a json_encoded array into a C2 array. It has to be in a specific format for C2.

    {"c2array":true,"size":[5,1,1],"data":[[[0]],[[0]],[[0]],[[0]],[[0]]]}

  • Ashley It's a simplified version of the OP's capx. When he spawns a rat he has the action 'rat: spawn ratArray' that throws the javascript error. My capx shows the same thing.

  • You have to set the correct mime type for m4a on your server.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You're subtracting 1 from Seconds every tick. One tick is one frame not one second so your Seconds variable will = 0 after 10 frames (a fraction of a second). And you don't seem to be setting a text object to display the Seconds variable.

    I wrote a tutorial on timers a while ago - it might be helpful:

    https://www.scirra.com/tutorials/450/timers

  • That's right for adding the score but the 'every tick -> set text' should be it's own event and not part of the 'on start of layout' event.

    For the speed change the impulse value. In the example the impulse is set to

    distance(Self.X, Self.Y, CatapultBlock.X, CatapultBlock.Y) / 4.5

    Just change that 4.5 value.

ramones's avatar

ramones

Member since 17 Apr, 2012

Twitter
ramones has 4 followers

Trophy Case

  • 12-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

15/44
How to earn trophies