weisdaclick's Forum Posts

  • After a lot of messing around with CocoonJS I am trying Ejecta which is giving me a load of issues in XCode - trying to sort them one by one...

  • Thanks for the response.

    Tried them all, there seems to be no difference.

    The problem is there are five screen modes in C2 and three in CocoonJS - and IMO I don't need any of them (no scaling,stretching or cropping required as it should fit 100%).

    Sadly this seems not to be the case.

  • I have built my project and been testing with the CocoonJS app launcher along the way.

    This is for the iPad only so I have made it 1024x768. I have read the documentation about supporting multiple screen sizes.

    Now I have built the project with Ludei's Cloud Compiling system and run it on my iPad4 through XCode. It looks like garbage.

    I have tried all the screen modes:

    Off - not allowed in CocoonJS

    Crop - crops the screen yes leaving 35% black

    Scale Inner - crops the screen as above

    Scale Outer - black space on left and white space on right with repeated image

    Letterbox Scale - as Scale Outer

    Letterbox Integer Scale - as Scale Outer

    After months of building my project and making it look perfect now once compiled it looks like s***.

    Other settings:

    Use loader layout - No

    Pixel rounding - On

    Window size - 1024,768

    Preview browser - Chrome

    Fullscreen in browser - All settings tried (as above)

    Use iOS retina display - All devices

    Hide address bar - No

    Enable WebGL - On

    Sampling - Point

    Loader style - Percentage text

    Pause on unfocus - No

    Clear background - No

    Can anyone tell me what I am doing wrong?

  • Events are processed one after the other, so what you have done is test for a condition, set the frame and music, but the very next event sets them back again.

    There are many ways to deal with this, but the easiest is to just use 'Else'.

    Yes that's exactly what I wanted to do, set the frame and music then if the user wishes set them back again.

    I can't see how your solution sets the button back - to explain I want frame 0 to show then when the button is pressed frame 1 shows, pressed again frame 0 shows etc. A simple on/off. I have tried every conceivable variant of touch and I can't get it to work.

  • I have been trying for a while to create this but I can't get it working.

    This is a Coccoon project so I am using touch.

    I followed this post http://www.scirra.com/forum/game-sound-On-off-button-issue_topic46140.html but this uses mouse events.

    I thought to create a sprite with 2 frames and alternate between frame 0 and 1, I can only get it working one way though - switches to frame 1 but can't switch back to frame 0.

    Any help welcome.

    image upload software

  • No it happens with sprites that just use Custom Movement also.

  • I've been trying to narrow this down....

    My game features pretty much just two sprites on each layout - player and enemy. The same enemy is just spawned again. I have switched enemies from different layouts and it seems not to be an issue such as an image point with a sprite.

    As mentioned it happens with the browser, in Cocoon launcher and in my Cocoon built app so its coming from Construct2 as not all the devices can be at fault.

    I am using bullet behaviours - will try some sprites without them and see what happens.

  • I have created my game in Construct2 but one issue I have is every 4 seconds or so the sprites jerk slightly in the game. There are only 5 or 6 sprites on the screen.

    I have also reduced the collision points to the absolute minimum - between 4 and 6.

    Each sprite is 120x65. There are 5 frames repeating at a speed of 7 but even with just 1 frame it still jerks.

    No particles/effects/scale/flip/blend modes used.

    I have tried everything to reduce this and it occurs on my PC in Firefox (or IE). Same issue on my iPad (iPad4 - 1024mb RAM, retina display).

    Using the CocoonJS app I get 62FPS. I have built the game in the Cocoon cloud and the issue is also there.

    I am using r139 64 bit, OpenGL 3.3.11672.

    The game - download size 19.3 mb, memory use 158mb (was 173mb but after optimizing I have it down to 158).

    Background image - 122kb

    Layers - 4 (bg, main, HUD, Touch controls)

    Use loader layout - No

    Pixel rounding - On

    Preview browser (default)

    Fullscreen in browser - Scale

    Use iOS retina display - All devices

    Enable WebGL - On

    Sampling - point

    Clear backgrround - No

    My PC - Win 7 64 3Ghz, 3Gb RAM, ATI Radeon HD 4800 (latest driver).

    So I'm stuck right now - please help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok I'm obviously doing something wrong here....

    Downloaded rex_pause_dt.7z and unzipped it, copied the rex_pause_dt folder to ../constuct2/exporters/html5/behaviors

    Now I can find no trace of pause in the editor. Using version 139 (64 bit)

    Can you tell me what I am doing wrong?

  • Thanks for that, if I would have known this before I could have saved a ton of time.

  • Hi, I have created my project and have exported it with the Cocoon JS option, (I have previously added the Cocoon object to my project).

    I have installed the Cocoon JS app to my iPad and followed the steps detailed here:

    wiki.ludei.com/cocoonjs:launcherapp

    I have copied the zip file to my iPad via iTunes but when I open it with the app launcher the buttons are missing.

    My project has a start screen with 3 buttons to set the level and they are not there which means I can test no further.

    The buttons are regular Construct2 items, nothing special about them - placed on a layer above the background layer and referenced in the event sheet. They work fine on my PC but here they don't show.

    Is this a bug or am I doing something wrong? Can anyone suggest a workaround?

  • I got it working now.

    I don't know when you push/pop values to the array if it expands the size of the array but on the previous event sheet I added this line:

    System On end of layout      myArray Set size to (5,1,1)

    After I did that it works perfectly.

    Thanks for all the help.

  • Thanks for the responses so far.

    Here is a screenshot, there really is nothing else. You can see another way I have tried it with a local variable.

    I have removed the / 5 to test and the results are not correct and I can't work out why. The black image is the test result with TextTest at the top with TextTest1 next and so on. At the bottom is TextAv but the added value is never quite right which has me stumped. You can see here it is out by one.

    I have read everything I can online about arrays and can�t find an answer.

    [/IMG]

  • 100% sure the divide is not working, I am only using very simple numbers right now. This makes me think I can't do it like this for some reason.

    To test I changed the divide and tried adding another number or multiplying - nothing works, only the first part of the statement (adding the values in the array).

    I tried:

    MYArray.At(0) + MYArray.At(1) + MYArray.At(2) + MYArray.At(3) + MYArray.At(4) /5

    (MYArray.At(0) + MYArray.At(1) + MYArray.At(2) + MYArray.At(3) + MYArray.At(4)) /5

    (MYArray.At(0) + MYArray.At(1) + MYArray.At(2) + MYArray.At(3) + MYArray.At(4) /5)

    (MYArray.At(0) + MYArray.At(1) + MYArray.At(2) + MYArray.At(3) + MYArray.At(4) /5)

    (MYArray.At(0) + MYArray.At(1) + MYArray.At(2) + MYArray.At(3) + MYArray.At(4) /(5))

    MYArray.At(0) + MYArray.At(1) + MYArray.At(2) + MYArray.At(3) + MYArray.At(4) / MYArray.Width

    Stuck.

  • This is driving me crazy, I have been looking around trying to solve it with no joy.

    I am trying to get the average of five values. I created an array then added the values and divided by 5:

    System/Every Tick - System Set MyVar to MYArray.At(0) + MYArray.At(1) + MYArray.At(2) + MYArray.At(3) + MYArray.At(4) /5

    System/Every Tick - TextAv/Set text to MyVar

    All works perfectly apart from the divide by five part, the five values are just added together. I have tried every combination of brackets but nothing works - what am I doing wrong???