Functions and type methods doing the same thing

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Santos
Party member
Posts: 384
Joined: Sat Oct 22, 2011 7:37 am

Functions and type methods doing the same thing

Post by Santos »

This is incredibly trivial, but I was just curious.

For example, love.audio.play(source) and source:play() seem to do the same thing, but love.audio.setPitch isn't a thing.

Is this because play, rewind, pause etc. take no arguments other than a source, and/or because it lessens the learning curve for doing basic things, and/or am I missing something? :ultraglee:
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 180 guests