Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Asset Forge

Create your own 3D models and 2D sprites! · By Kenney

Mech Generator Script

A topic by Gxiraudon created Jun 18, 2022 Views: 786 Replies: 1
Viewing posts 1 to 3
(1 edit)

Hi everyone, this is a robot generator script based on the Mech blocks. 

Enjoy!

script here ->> MechGenerator.lua 

Edit: The script was inaccessible until now. 


Hey Gxiraudon!

I edited your script slightly to make use of the three hand objects Kenney now has. If you want to update your script with it, feel free, no attribution needed:

randomHand = { "Mech/hand", "Mech/hand_closed", "Mech/hand_point",}
Hand = randomHand[math.random(#randomHand)];

-- generate hands. there are no available hands so these will be simple hexagons
forge.build(Hand,{-1.01*shoulder_spacing,1.45,0},{90,0,90},{-.8,.8,.8})
forge.build(Hand,{1.01*shoulder_spacing,1.45,0},{90,0,-90},{.8,.8,.8})