Chadori's Recent Forum Activity

  • A simple boolean/variable limiter can make it work. But I'll just stick with number variables and I'll use the touch object instead of the mouse but it still works the same with the mouse object.

    For example:

    Global Number Variable named "ClickCount" .

    *On Touched Object1

    . -----> Add 1 to Global Variable - ClickCount.

    *ClickCount less or equal to 2 & *On Touched - Blow Tile.

    . -----> Call Function ("Blow")

  • lucid . I got another object which has a different size. I don't know the exact size but I know that it has a portrait size with the width of 96 pixels. So the problem again is the same with my previous post but now it becomes invisible when 75% of it's size is not seen on screen.

    Maybe it is getting some problem finding out if the scml object is still on-screen. I can provide you the scml & scon file if needed via email. Thanks again.

  • lucid - Also, there are 2 "set visible" actions at the action dialog.

  • Hello again lucid . I encountered an unusual problem with a spriter object I have in C2.

    Here is the problem's description:

    I have a specific Spriter object on Construct 2 with a size of (225, 125) and the object doesn't show up when it's body is not visible by approximately > than 50%.

    It's unfortunate I reported this without knowing the specific cause but I can email you the scon/scml file if needed.

  • anty21ro - I didn't see your .capx buy you can simply do this by making 2 (2x2) tiled backgrounds with, for example if the Los angle is 90 degrees then the 1st tiled background should be 45 degrees and the 2nd one should be -45 degrees.

    In measuring the distance you can do this by trigonometric formulas or simply make a 3rd (2x2) tiledbackground in the middle with 0 degrees and the width/height is your distance.

    This is a method for accurately checking the los range and angle. But yeah, I agree this feature premade in the editor with an option would be great also.

    Sorry if it isn't clear and I couldn't give you any samples since I'm only using my phone.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 99Instances2Go - I forgot to close this post but that's what I did long before I made this post. The thing is, this feature would save us the time in making 2 los object (stated above) but now I think there is a reason this option is not made, mostly because of optimization but I am not sure. Regardless, this post is already null.

  • Thanks guys, I get your point now. But how does it even know where the function is if it doesn't search through the whole sheet? Yeah a noob question but I just got curious again.

  • lucid - Ok. I'll keep reminding every 2or3 weeks in case you forget.

  • I have been wondering about how functions work efficiently and I didn't see in the manual any explanations so I came here. In normal programming, User-defined functions are always placed above the in the code sheet, this is because it works efficiently that way since the cpu reads codes from top to down. And scattered functions can actually cause non-noticable delays.

    For example: (Both of them always have their functions above)

    An HTML code:

    <html>
       <head>
           <title>
               Javascript Function Sample
           </title>
           <script>
             function MyFunction()
              {
               window.alert("Function");
              }
           </script>
       </head>
    
       <body>
       
         <script>
         MyFunction();
         </script>    
     
       </body>
     
    </html>
    [/code:a7jvc6xm]
    
    C++ code:
    
    [code:a7jvc6xm]
    #include <stdio.h>
    #include <conio.h>
    
    void MyFunction()
            {
    
            printf("Function Test"); 
    
            }
    
    int main(void)
            
           {
     
            MyFunction();
    
           getch();
           return 0;
          }
    
    [/code:a7jvc6xm]
    
    I sometimes think that if we put functions in the middle of the eventsheet especially with a big project containing about 4000 events. It will make an unnoticeable delay but if pushed through, it might just make an unexpected delay. My point is that event sheets are read by the cpu from topwards to downwards. That means if 
    a function is right above the call then it will travel 150% the normal distance, so basically it read longer by 50% and that is 1.5 * tick cycle travel. (See the below image) Is my observation right or does Construct 2 handle functions differently? 
    
    [img="http://i.imgur.com/pYg3rJg.png"]
    
    Summary: So should C2 functions be always on top?
    Thanks for your time.
  • I saw an animation contest on spriter forum and I just wanted to share. The prizes are really big. The Grand Prize is worth $1,000.00 <img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked">

    https://brashmonkey.com/forum/index.php ... and-prize/

  • Napelazam - Just want to point out that Ashley is a guy.

    andreyin - Thanks it works nice but a little non-user friendly but many features.

Chadori's avatar

Chadori

Member since 10 Oct, 2014

Twitter
Chadori has 49 followers

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • RTFM Read the fabulous manual
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

24/44
How to earn trophies