tnvoon's Forum Posts

  • 11 posts
  • Hi,

    I need help with synchronizing the use of 'Every x seconds'. I have 2 events that trigger every 3 and 5 seconds respectively. However, when I restart the layout, sometimes the 5-second trigger off first. How do I make sure the 'Every x second' condition behaves like when I initially start the game? Do I reset the timer?

    Thanks for any help rendered. Much appreciation.

  • Thanks a lot guys. You have been a great help.

  • Actually what I need to know is how do you compare two consecutive elements in an array?

  • Hi,

    I have a sequence of numbers stored in an array as single numbers for each element. I'm trying to search for consecutive number of matches. Example:

    1 2 3 3 3 2 2 3 3 2 2 2 1 1 1 1

    The result would be:

    three 3s

    two 2s

    two 3s

    three 2s

    four 1s

    Also, the sequence of numbers can have varying lengths.

    I've tried using WHILE but to no avail as the condition to stop the WHILE loop doesn't seem to work:

    WHILE

    array.at(index) NOT EQUAL TO 0 (action)

    In the action, I increment index.

    I'm trying to check for matches while not end of sequence taking 0 to be the end of the sequence. By the way, if the array element is empty,is it still a '0' or a NULL?

    Any help rendered will be greatly appreciated.

  • But it doesn't work when the overlapping sprites are of different objects. The pick top applies to instances of objects, not the top object when the below sprite is of a different object.

  • How do I write the conditions to select only the topmost sprite object when they happen to overlap? My code at the moment is On Touch sprite object destroy. So, when two different moving sprite objects happen to overlap, I only want to select the topmost sprite and destroy it. With my present code, both overlapping sprites are destroyed.

    Any help given will be much appreciated.

  • Hi Cannolade,

    I've a game that you may want to look at. It's an f2p app in the Itunes store.

    Sorry, it appears that I can't post the link here. I'm afraid you'll have to go to the Itunes store and do a search for 'Nevada Royal Poker' in the card games category to view it.

    You can reach me at voont.nangubx@gmail.com if you're interested.

    Thanks.

    Voon

  • Level1sb, thank you for your comments. Wonder if you care to post them on clay.io?

  • Here's my game link:

    wooppals.clay.io

    Let me know if you're interested.

  • Hi everyone,

    Would appreciate any feedback on this game. Have a go at it at wooppals.clay.io

    Thanks very much.<img src="smileys/smiley1.gif" border="0" align="middle" />

    Nang

    Email: voont.nangdtc@gmail.com

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Got this error message when installing R120.2 version. Updating from R119.

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

    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: 254

    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 120.2 (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   

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

  • 11 posts