TwinTails's Forum Posts

  • Ashley This bug still seems apparent in r176 using Crosswalk, latest XDK. Also cannot tap on anything else whilst textbox is focused as it just brings up the keyboard...

  • cranberrygame You say you've converted the paid plugins to free, are you going to update the links?

  • I'm getting an error with the LocalNotification plugin:

    Javascript error! Uncaught TypeError: Cannot read property 'notification' of undefined (localhost) PhonegapLocalNotification_plugin.js, line 132 (col 19)

  • Problem Description

    A window with the title "Construct 2 Check failure" appears when I open the program. Appears to be an issue with the HTML5 exporter.

    Attach a Capx

    Not required - error occurs before being able to do anything.

    Description of Capx

    N/A

    Steps to Reproduce Bug

    • Open Construct 2
    • Observe Check failure error message
    • (Clicking Ignore brings the message up again)

    Observed Result

    ---------------------------

    Construct 2 Check failure

    ---------------------------

    Check failure! This is probably a bug:

    ACE table: Expression ID duplicated in ACE table

    Condition: exp_ids.find(id) == exp_ids.end()

    File: c:\c2\source\exporters\html5\..\..\common\ERAHelpers.h

    Line: 259

    Function: void __cdecl era::ACETable::AddExpression(int,int,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,void (__cdecl *)(const class era::StaticResult **,int,class era::StaticEvaluation *))

    Build: release 176 (64-bit) checked

    Component: HTML5 exporter

    (Last Win32 error: 0)

    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.

    ---------------------------

    Abort Retry Ignore

    ---------------------------

    Expected Result

    Program opens without check failure window appearing.

    Affected Browsers

    • Chrome: (NO)
    • FireFox: (NO)
    • Internet Explorer: (NO)

    Operating System and Service Pack

    Windows 7 Service Pack 1

    Construct 2 Version ID

    r176 (64-bit)

  • 1: None that I know of

    2: I think you can use one file and just share it using Dropbox, Google Drive or some other shared cloud hosting. That way you make changes to one file and you can all work on different parts, make your own event sheets etc. if you want. You can also keep your own individual backups in case something goes wrong.

    3: Costco cake <3

  • Adding to modularity, I think a built-in search for code examples you can just drag and drop into your project sort of thing would be really cool.

  • Maybe you could set it disabled then re-enabled again after the value changed? The textbox has a set focus/unfocus action, I'm guessing it hasn't been added yet for the slider bar or doesn't have the functionality.

  • Can you not check the range?

  • Use the "Is within angle" condition and set Within to 180?

  • Thanks alextro!

    I took a look at your edits but felt they were a bit too rigid for my intentions. I also wanted to avoid using a decoy.

    So I made some tweaks and it turns out it was quite simple using Bullet and some global variables:

    >ON touch start 
    

    Set StartPointX TO Touch.X

    Set StartPointY TO Touch.Y

    N touch end

    Bullet speed = 0

    Set EndPointX TO Touch.X

    Set EndPointY TO Touch.Y

    Set angle_dev to angle(StartPointX,StartPointY,EndPointX,EndPointY)

    SPRITE Set Bullet speed to Touch.SpeedAt(0)

    SPRITE Set Bullet angle of motion to angle_dev degrees

    [/code:3vea4jmo]

    I was having this weird issue where it would only go left or right (-180 or 7 degrees) Turns out I had to set the angle of motion AFTER setting the Bullet speed

  • I found this a few days ago

  • It seems to me the picking is at fault. What does your Array look like?

    Is

    >> System > Pick local where local.occupied = 0
    System > Pick random local instance >>[/code:mc8e2nmk]
    
    in the same block or sub block? If it's in a sub event, try putting them together.
  • I'm trying to make an object move in the direction of a swipe with the touch plugin and bullet behaviour.

    I don't want the flick to work while the object is moving and the object should move relative to the speed of the swipe/flick.

    This is what I've done:

    It worked great using compare distance travelled(bullet) but I can't reset it??

    Are there any other ways I could go about doing this? It doesn't have to use the bullet behaviour.

    [attachment=0:2lgz723b][/attachment:2lgz723b]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What is it that you're unsure about?

  • It'd help if you told us what the issue was - is it the reset timer?

    If you need to reset the timer for each individual instance of the object, you can use the Timer behaviour for something like:

    >ON (ComboAchieved) START TIMER 2, Once, "ResetCombo"
    
    ON Timer "ResetCombo" SET VALUE object.combo=0[/code:2f6r7aji]