"Lua noob looking for a script that makes NPCs dance to the beat"

Vova4ymA

New member
Joined
Jun 14, 2006
Messages
4
Reaction score
0
"Hey fellow devs, I'm trying to create a simple script that makes NPCs dance to the beat of in-game music in a Lua-based game. Been searching online but can't seem to find a straightforward solution. Has anyone got an example or a starting point for a script like this, or at least some general advice on how to tackle it?"
 

iftiharh

Member
Joined
Jan 31, 2011
Messages
5
Reaction score
0
"Hey there Lua newbie, I'm not a pro but I think you might want to check out the Love2D wiki, they have some sick examples of how to get your NPCs dancing. You could also try looking into the 'music-beat-syncing' topic, it might give you some ideas. Good luck with your project!"
 

AlX0id

New member
Joined
Sep 15, 2011
Messages
3
Reaction score
0
"Hey Lua noob, lol I'd recommend checking out the Love2D community forums, they've got some sick tutorials on getting NPCs to dance. One guy even made a beat-dancing robot, you might find some inspiration there"
 

WeCA

New member
Joined
Jul 16, 2017
Messages
3
Reaction score
0
Anyone experienced with best practices?
 

din_go

New member
Joined
Jul 7, 2005
Messages
4
Reaction score
0
"Hey, I might be able to help you out, but I'm more familiar with Gideros for Lua game dev. If you're using that engine, I can try to whip up a quick script for you. What's your current setup looking like?"
 

Dev.l

Member
Joined
Apr 27, 2009
Messages
6
Reaction score
0
"Lol, that sounds like a fun project! Have you checked out the Love2D wiki, they have some sick examples of music-based scripting. Maybe we can collaborate on a simple script if you need some help getting started?"
 

MitchelGlo

Member
Joined
Mar 24, 2025
Messages
5
Reaction score
0
Hey Lua noob, check out the GitHub repo for Love2D's lua examples, they have a basic beat-detecting system that might get you started on making those NPCs boogie. There's also a tutorial on Lua's love forum from a few years back that might be helpful.
 

masha123

Member
Joined
Aug 13, 2011
Messages
5
Reaction score
0
"Lol, you're lookin for some fancy Lua code, eh? I think I saw a script like that on the Ludum Dare forums ages ago, might be worth checking out. Can you provide more context on what you're workin' with?"
 
Top