Page 1 of 1

Help with item coding

Posted: Thu Jun 16, 2016 5:37 pm
by WarlordToby
So, i basically did create something, made a sprite for it with Gimp and there are no warnings in code.
Problem is; The game does not seem to load the item i did.

Funny...

Re: Help with item coding

Posted: Thu Jun 16, 2016 5:40 pm
by juanjp600
The game does not search for any new files it may be able to load. Instead it needs a reference given in the selected content package in Data/ContentPackages.

Re: Help with item coding

Posted: Thu Jun 16, 2016 5:51 pm
by WarlordToby
I managed to figure it out.
Also i assume the sprite source is x y, x y type?

Re: Help with item coding

Posted: Fri Jun 17, 2016 2:16 pm
by Regalis
WarlordToby wrote:I managed to figure it out.
Also i assume the sprite source is x y, x y type?
If you mean the sourcerect parameter, it's "x, y, width, height".

Re: Help with item coding

Posted: Sun Jun 19, 2016 10:28 am
by WarlordToby
Thank you, that really left me thinking but thank you!

Re: Help with item coding

Posted: Fri Feb 24, 2017 5:52 pm
by DarkPaapi
Hello guys.

Is it possible to set a contained item active if the parent item is "OnUse" or "OnActive", just asking because I made a gun and want an option to put a flashlight into the itemcontain slot and become active when I'm using the main item.

Re: Help with item coding

Posted: Sun Mar 19, 2017 12:33 pm
by etet2
DarkPaapi wrote:Hello guys.

Is it possible to set a contained item active if the parent item is "OnUse" or "OnActive", just asking because I made a gun and want an option to put a flashlight into the itemcontain slot and become active when I'm using the main item.
that's impossible to do right now. you could make it possible to make gun with flashlight in fabricator

Re: Help with item coding

Posted: Tue Mar 21, 2017 3:56 pm
by DarkPaapi
etet2 wrote: that's impossible to do right now. you could make it possible to make gun with flashlight in fabricator
Thanks. Than i need to go with the Plan B. If a flashight is equipted on the guns inventory slot its turning on a light cone, just like the normal flashlight when is equipted.