Game Maker - 'Clamp' Function Overview

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ม.ค. 2025

ความคิดเห็น • 5

  • @mr.peoples901
    @mr.peoples901 ปีที่แล้ว +3

    Well done, clear and concise, an excellent tutorial, thank you.

  • @elliemcfluffle7313
    @elliemcfluffle7313 ปีที่แล้ว

    I was trying to keep objects within a room using the clamp function but it wasn't working and I couldn't figure out what I was doing wrong. Now I know it was because I wasn't assigning the result to x and y and it now works in my game! Thanks for the helpful info 👍

  • @tips6233
    @tips6233 ปีที่แล้ว

    does clamp wrap? say I dont ever want it to go between -.2 and .2 but ANYTHING with absolute value between .2 and 1 is ok.

    • @talkashie
      @talkashie  ปีที่แล้ว

      Hmm... I'm having trouble understanding what you mean exactly, sorry!

    • @Koistork
      @Koistork ปีที่แล้ว

      Wouldn't you set the .2 as the minimum and the 1 as the maximum? Then it can never leave that range.