Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord
    1. Home
    2. Coding
    3. Functions
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Chronos

      Coding for Fun: Measuring Models and Making Advanced Collision Responses
      dimensions collision measure response • • Chronos

      11
      2
      Votes
      11
      Posts
      937
      Views

      joyrider3774

      thanks soo much for this i use it to know objects dimensions for my projects well i use it to find the values i need, i don't use the code in my project

    • L

      Functions for Tree data structures
      • LucasJG25

      1
      4
      Votes
      1
      Posts
      255
      Views

      No one has replied

    • L

      Functions for Linked Lists
      • LucasJG25

      2
      6
      Votes
      2
      Posts
      199
      Views

      vinicity

      Great! This will be super useful!

    • waldron

      Looking for a save/load function
      • waldron

      11
      1
      Votes
      11
      Posts
      465
      Views

      waldron

      @toxibunny yeah i got that, i'm fine with this for now though thanks man

    • Chronos

      Coding for fun: Improvising a type function
      type function • • Chronos

      4
      3
      Votes
      4
      Posts
      414
      Views

      L

      Your solution looks pretty solid. Another way to accomplish this would be to use structs as in

      integer = 1 strings = 2 floats = 3 arrays = 4 n = [.data = 123, .type = integer] n1 = [.data = "123", .type = strings] if n.type == integer then //do something endif

      Keep up the good work!!

    • pianofire

      Text Selector Control
      • pianofire

      5
      10
      Votes
      5
      Posts
      259
      Views

      waldron

      @pianofire iv been trying to code an inventory box all day and here you have done it haha 😂

    • PickleCatStars

      Hsv>rgb and rainbow pallette maker
      rainbows rainbow hsl rgb hsv • • PickleCatStars

      3
      3
      Votes
      3
      Posts
      286
      Views

      vinicity

      Very, very cool! Love it!

    • PB____

      NM8H2MND1Z: Unit Testing Framework for FUZE 2.15
      • PB____

      4
      6
      Votes
      4
      Posts
      319
      Views

      PB____

      Needed to follow it up with a third update. If you write multiple unit test modules, you need to call test_init() first (to make sure your test starts with a clean context)

    • Darien112

      Updated: Motion Controls Logic v1.0
      • Darien112

      7
      8
      Votes
      7
      Posts
      385
      Views

      waldron

      oh this is perfect just downloaded it :)

    • Darien112

      This topic is deleted!
      • Darien112

      1
      7
      Votes
      1
      Posts
      41
      Views

      No one has replied

    • T

      Breakpoint Function for Debugging
      • thedos

      3
      2
      Votes
      3
      Posts
      295
      Views

      T

      @vinicity
      it's not meant to be a string intentionally. it can be, but in reality can and should be anything you throw in there. as an example if you wanted to see the location of a sprite as an example you should actually plop in setBreakpoint(1, "some id value", getSpriteLocation(nameOfSprite)) and it will display the resulting vector. again, the idea was to keep it flexible so you could display custom messages, arrays, values, function results, etc. to pinpoint what something is doing or its value at any given time.

      as far as the text goes, yea there were a handful of compromises i had to make to keep it compact but also retain the complete functionality needed to be useful. hopefully something like this will actually make it into the editor itself so we don't need this.

    • M

      3d into 2d functions
      • matt121a

      2
      0
      Votes
      2
      Posts
      219
      Views

      PB____

      What do you mean with 3D sprites? I only know of 2D sprites.

      It's possible to render 3D objects on a 2D image (using setDrawTarget and drawObjects) and you should then be able to use that image with a 3D object drawn on it, as the image for a sprite. But I'm not sure if that's what you mean. Also I haven't used sprites much, so I'm not sure if the sprite updates if you update the image afterwards, but I would expect it does.

    • pianofire

      isNumber: find out if a string variable contains (only) a numeric value
      • pianofire

      2
      3
      Votes
      2
      Posts
      325
      Views

      P

      @pianofire Thanks for sharing this this might be very usefull

    • C

      Random function with 2 parameters
      • chucky831

      8
      0
      Votes
      8
      Posts
      346
      Views

      C

      Perfect thank you so much for the answers. Now I study it calmly

    • DomDom

      draw3D point/line
      • DomDom

      4
      1
      Votes
      4
      Posts
      300
      Views

      waldron

      could use the showobjectbounds can be a bit messy though

    • vinicity

      coolText: fade in text function
      • vinicity

      10
      10
      Votes
      10
      Posts
      578
      Views

      vinicity

      If someone wants to use it in their own project, please be aware that there is a small limitation:

      In order to animate the fade in, I needed to draw a solid background colored box behind the currently animating text for each frame. Since the animation is much bigger than the actual text, the box is also much bigger. This means you cannot have two rows of text that are very close to each other, since the box for the next row will partially cover the previous one. Just keep them a bit apart and you will be fine.

    • pianofire

      Functions to convert from a string to a colour constant and vice versa
      • pianofire

      1
      5
      Votes
      1
      Posts
      244
      Views

      No one has replied

    • pianofire

      splitString: split a string using the specified delimiter
      • pianofire

      2
      4
      Votes
      2
      Posts
      308
      Views

      P

      @pianofire thats awesome

    • undefined


      •


      Votes

      Posts

      Views