How to create a Custom Mouse Cursor in Godot

Поділитися
Вставка
  • Опубліковано 26 жов 2024

КОМЕНТАРІ • 22

  • @ComposTiger
    @ComposTiger Рік тому +1

    Thanks! I would have stored the last scale multiplier and added an if statement so you do not rescale the texture if the window size changed but not enough to have a new scale value

  • @turbomodus
    @turbomodus 4 місяці тому

    thanks for the great tutorial. Needed to adapt some things for Godot4, but in general it was very helpful to get the hardware cursor scale up on resolution change

    • @discordLC
      @discordLC 3 місяці тому

      Hey how did you do the var image = default_cursor.get_data() in Godot4?

    • @turbomodus
      @turbomodus 3 місяці тому

      @@discordLC var image = cursor.get_image()

    • @nitinsurendran8959
      @nitinsurendran8959 2 місяці тому

      @@turbomodus Hey I'm kinda dumb how does export(Texture) work in godot 4

    • @turbomodus
      @turbomodus 2 місяці тому

      @@nitinsurendran8959 i believe you are talking about the changes for an export variable to change in the inspector?
      Thats @export var varName : Texture

    • @nitinsurendran8959
      @nitinsurendran8959 2 місяці тому

      @@turbomodusI see, thanks alot :)

  • @srbisonte
    @srbisonte 2 роки тому

    thanks a lot!! just what I was looking for, works perfect por pixel art games with low resolusion scaled :)

  • @michaelmeier3445
    @michaelmeier3445 Рік тому +5

    Anybody know how to do this in Godot 4? I can't seem to find the screen_resized signal.
    Update: I found a solution! This is now a signal in the viewport. Here is how to connect it: get_viewport().size_changed.connect(_update_cursor)

  • @herorobb
    @herorobb 2 роки тому

    Awesome. Thank you.

  • @SuperCamelFunTime
    @SuperCamelFunTime 8 місяців тому

    Great video!
    For the multiple being off by one, could this be due to flooring instead of ceiling?

  • @IngramGray
    @IngramGray Рік тому

    Quick question, how did you get the screen resolution to multiply incrementally in the same way the mouse does? Also, is the reason we add +1 to the scale_multiple to account for flooring the window size earlier? Great video by the way, I like that the pacing is a bit faster than other tutorials.

  • @dueddel
    @dueddel 2 роки тому

    I am not that much into 2D and therefore not I am not interested in making pixel art games at all (though I love the look … I am simply not a 2D artist). But that tutorial was awesome! I'd subscribe again at this point if I hadn't done it before. 👍

  • @Sean-gx1sf
    @Sean-gx1sf 2 роки тому +1

    Do you have any plans to flesh out your deepweb dice game more? It seems like something worth taking and making into something you'd charge for; I'd certainly buy a roguelike with the mechanics you had in that game made into a more extended experience.

    • @jontopielski6227
      @jontopielski6227  2 роки тому

      Maybe some day. I have a hard time sticking to a project without a deadline and making meaningful progress every day. And that's what is required to create a larger project :(

  • @lufasumafalu5069
    @lufasumafalu5069 2 роки тому

    great chsnnel, subbed n liked

  • @CurryFlavoredPenguins
    @CurryFlavoredPenguins 2 роки тому

    Hi, There! I saw your previous tutorial on the RPG battle system, any chance of you creating a new tutorial on making status effects and shields? as well as multiple enemies?

    • @jontopielski6227
      @jontopielski6227  2 роки тому

      Hey I don't have a plan for that but I'll keep it in mind if I do a larger RPG series in the future

    • @CurryFlavoredPenguins
      @CurryFlavoredPenguins 2 роки тому

      @@jontopielski6227 That's good to know! I love your RPG tutorial and its such a shame there are so few tutorials on it for godot

  • @akitaropiquet7580
    @akitaropiquet7580 Рік тому

    10:10 maybe it was off by 1 because you used floor() instead of ceil()?

    • @Vexcenot
      @Vexcenot 18 днів тому

      what do they do?

    • @akitaropiquet7580
      @akitaropiquet7580 18 днів тому

      @@Vexcenot floor(float f) rounds f to the closest smallest integer. And ceil(float f) rounds f to the smallest integer greater than f. For example: floor(1.3) = 1, and ceil(1.3) = 2.