BanksySan's Forum Posts

  • I'm trying to tell whether a sprite is colliding with another sprite from the top, left, right or bottom. I thought I could it with a combination of the angle of movement and the size/position of the sprites (assuming they don't rotate).

    It's a fairly involved calculation, so before I went too far down that route, is there a simple built in thing that can tell me the position where on a sprite a collision occurred?

    Failing that, is there a way to get the angle of motion from a sprite immediately before a collision? Getting it on the collision returns 0 (which is technically correct and useless in this context).

    Demo: https://drive.google.com/open?id=1pFre_1_kpMwmhPsk4iXKhXkoITL7qgAv

  • Why, why, why is the Sprite.Angle between 0 & 360 but the 8Direction.MovingAngle between 180 and -180?

  • Can I use Jump-thru as a one-way door? such that I can fall through it, but not jump up it?

  • Am I using it wrong? I'd have thought that these wouldn't collide because they have different tags:

  • Found it! It's hidden away in the Misc section. Of course.

  • Cheers dop2000,

    Where is that filter?

  • Can I make a sets of sprites have different solid behavior for different sprites?

    e.g.

    Sprite A is solid to Sprite B.

    Sprite C is solid to Sprite D.

    And maybe some sprites are solid to some only if some instance variable is set.

  • Is there a function to pad a string?

  • Maybe console.table could help:

    var foo = [[1,2],[3,4],[5,6]];
    
    console.log(foo);
    console.log(JSON.stringify(foo));
    console.table(foo);
    
    var bar = [[[1,2],[3,4]],[[5,6],[7,8]],[[9,10],[11,12]]];
    
    console.log(bar);
    console.log(JSON.stringify(bar));
    console.table(bar);
    
  • I'm assuming that behind the scenes the array is a JavaScript array? In which case it a multidimensional array is basically an array of arrays of arrays.

    (Don't understand why C3 has this odd array object with just three dimensions though)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you. I thought I was going insane!

  • There are quite a few warnings on the Google Play console around the usage of unsupported APIs:

    Unsupported
     9 warnings identified
    The following APIs are grey-listed and Google can’t guarantee that they will work on existing versions of Android. Some may already be restricted for your target SDK
    
    
    API Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;
    2 occurrences identified. Only unique stack traces are shown.
    
    API Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;
    2 occurrences identified. Only unique stack traces are shown.
    
    API Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;
    2 occurrences identified. Only unique stack traces are shown.
    
    API Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;
    2 occurrences identified. Only unique stack traces are shown.
    
    API Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;
    2 occurrences identified. Only unique stack traces are shown.
    
    API Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;
    2 occurrences identified. Only unique stack traces are shown.
    
    API Landroid/view/textclassifier/logging/SmartSelectionEventTracker;-><init>(Landroid/content/Context;I)V
    2 occurrences identified. Only unique stack traces are shown.
    
    API Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V
    2 occurrences identified. Only unique stack traces are shown.
    
    API Landroid/content/Context;->bindServiceAsUser(Landroid/content/Intent;Landroid/content/ServiceConnection;ILandroid/os/Handler;Landroid/os/UserHandle;)Z
    1 occurrence identified
    

    How worried should I be about these? Is there any way I can estimate what problems they might cause?

  • You do not have permission to view this post

  • All the links are dead now.

  • Even int() doesn't seem to solve all problems.

    Sometimes it'll just have a value it can't handle.