Is there a Dress up game code?

Need help with the site/forum/pets? Ask questions and get help from other members here.

Is there a Dress up game code?

Postby CocaCola » Thu Jun 27, 2019 12:48 am

Is there a dressup game code like elouai? I tried making one with the drag and drop code but I didn’t like how it came out.
User avatar
CocaCola
 
Posts: 3
Joined: Wed Sep 13, 2017 8:09 am
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Is there a Dress up game code?

Postby Restless » Thu Jun 27, 2019 4:59 am

Yeah if you don't want drag & drop like CS has you just use image layers in html (z-index) or javascript. For ease, make sure the clothing (or whatever) items are the same size height and width-wise of the pet and make sure their backgrounds are transparent, that way you don't have to try to position the clothing image exactly.

https://stackoverflow.com/questions/648 ... -a-webpage

If you need to save the image to share it on another site (like how you can share CS pets on other forums) you'll probably want to use another probably server-side coding language like php to generate the image. There are lots of php tutorials and tools out there for this if you need it (here's one). Or just have users screenshot the picture ;)
Image Image
Pet's name: Mary
Owner's name: Restless
ImageImageImage
Image


Image


ImageImage
Image
................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
User avatar
Restless
 
Posts: 158
Joined: Tue Mar 17, 2009 11:19 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Is there a Dress up game code?

Postby CocaCola » Thu Jun 27, 2019 7:20 am

Restless wrote:Yeah if you don't want drag & drop like CS has you just use image layers in html (z-index) or javascript. For ease, make sure the clothing (or whatever) items are the same size height and width-wise of the pet and make sure their backgrounds are transparent, that way you don't have to try to position the clothing image exactly.

https://stackoverflow.com/questions/648 ... -a-webpage

If you need to save the image to share it on another site (like how you can share CS pets on other forums) you'll probably want to use another probably server-side coding language like php to generate the image. There are lots of php tutorials and tools out there for this if you need it (here's one). Or just have users screenshot the picture ;)


Thank you! that really helped but I don't know how to make the items appear on the pet, I tried jquery toggle but i just got confused on how to make it work
User avatar
CocaCola
 
Posts: 3
Joined: Wed Sep 13, 2017 8:09 am
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Who is online

Users browsing this forum: No registered users and 1 guest