"Design My Avatar" Game

Get help using Construct 2

Post » Tue Oct 08, 2013 2:18 pm

Hello.
I would like to make a game that allows a player to choose different avatars and desing them with hats, suits, pants, etc, with the drag & drop behavior.

What I need help with:
- How I can "save" a specific position ( the avatar position ) to the person computer or outpot it to a website URL?
I mean, when the player finished to design his avatar, he will be able to publish the avatar to my website, but even if i'll find any command that prints the game-screen to the website, it will print the whole screen and not only the avatar.

How I can do this?
Owner of Movies!
B
9
S
2
G
1
Posts: 38
Reputation: 1,168

Post » Tue Oct 08, 2013 4:53 pm

You need to make so that your entire game board can be re-drawn or destroyed at will.

Destroy your entire game board, and have the window resize to 256x256 or whatever avatar size you want. Then do the snapshot. Destroy the snapshot elements, and re-size window to original dimensions, and re-draw the game board.

Some things that will help:

Use wait. If you instantly try to re-draw after a window resize the X and Y cords will be wong on random objects. Give it a second or 2 to cool down, then try re-drawing you window elements.

use the Anchor behaviour. Sometimes this is helpful to keep your objects where they belong. Most of the time it does not though, so re-drawing your entire game board and putting things where you need them seems to be the best way of doing things.

If you can not keep the elements in focus, try the system > Scroll to, to correct the viewport positioning.

Positioning things after a window resize is more of an art than a science it seems.

Screenshots could be really useful. I wish we could get a snapshot-under-sprite so we could easily snapshot small regions of the screen. I doubt node webkit can do this though.

If you are trying to do this in a web-browser the rules change completely it seems.
B
29
S
8
G
4
Posts: 767
Reputation: 5,985

Post » Thu Oct 10, 2013 9:06 am

[QUOTE=jojoe] You need to make so that your entire game board can be re-drawn or destroyed at will.

Destroy your entire game board, and have the window resize to 256x256 or whatever avatar size you want. Then do the snapshot. Destroy the snapshot elements, and re-size window to original dimensions, and re-draw the game board.

Some things that will help:

Use wait. If you instantly try to re-draw after a window resize the X and Y cords will be wong on random objects. Give it a second or 2 to cool down, then try re-drawing you window elements.

use the Anchor behaviour. Sometimes this is helpful to keep your objects where they belong. Most of the time it does not though, so re-drawing your entire game board and putting things where you need them seems to be the best way of doing things.

If you can not keep the elements in focus, try the system > Scroll to, to correct the viewport positioning.

Positioning things after a window resize is more of an art than a science it seems.

Screenshots could be really useful. I wish we could get a snapshot-under-sprite so we could easily snapshot small regions of the screen. I doubt node webkit can do this though.

If you are trying to do this in a web-browser the rules change completely it seems.[/QUOTE]

I am using web-browser, and it seem to be easy to downlod a spirit, I did it, but the problem is that when you design your avatar you put things on him such as hats, etc, and other spirits - and it can download the clearn spirit only, without all the additions...
Owner of Movies!
B
9
S
2
G
1
Posts: 38
Reputation: 1,168

Post » Fri Oct 11, 2013 8:51 am

Help please? It's that hard to do design my avatar game :S
Owner of Movies!
B
9
S
2
G
1
Posts: 38
Reputation: 1,168


Return to How do I....?

Who is online

Users browsing this forum: uzumiapps and 27 guests