F
Fibonacci
Guest
I am making a program to pose characters using a ragdoll setup and I have been trying to make it possible to replace a sprite for a body part from external image file directory.
.png 200x200
But when I replace say the left arm on one doll, all the left arms of all the other dolls change aswell!
I would like only the part I have selected to change, while keeping the other parts as the images I previously selected for them.
This is the basic code I am using
I have also tried this.
I know the code is a bit rough but any help would be appreciated.
Summary.
Replacing sprites to make multiple unique characters from externally drawn images
.png 200x200
But when I replace say the left arm on one doll, all the left arms of all the other dolls change aswell!
I would like only the part I have selected to change, while keeping the other parts as the images I previously selected for them.
This is the basic code I am using
Code:
Create
Held=false;
me=sprite_index
Step
if id=global.selctall
{Held=true}
else
{Held=false;}
<Shift>
if Held=true
{
if sprite_exists(me)
{
var orspr = sprite_add(get_open_filename_ext("Image File|*.png;*","", working_directory, "Load A Part"),1,false,false,90,90);
sprite_assign(me,orspr);
sprite_delete(orspr);
}
}
Code:
<Shift>
if Held=true
{
{
var file;
file = get_open_filename_ext("Image File|*.png;*","", working_directory, "Load A Part");
if file != ""
{
sprite_replace(me,file,1,false,false,90,90);
}
}
global.selctall=noone
}
Summary.
Replacing sprites to make multiple unique characters from externally drawn images