Formula for "Image points"

Get help using Construct 2

Post » Mon Dec 16, 2013 2:22 am

I need an equation that would spawn "stickers" based on the user's input.
-The user would drag and drop the sticker onto a sprite (generated from user media)
-Then, after clicking a save button, the program will take the usermedia and fullscreen it, and take the stickers and place them in the relative points on the usermedia sprite.
-The equation would have to be dependent on the edges right? (since the image will most likely be changed before save)
- Another use- if the user moves the usermedia sprite to get a better view, the sticker would have to move along with the sprite too.
I've looked into dynamic image point manipulation- but that seems to be non-existant. Another solution I thought of was to save a layer as an image... but again I have yet to find that possible. If there is a simpler way of doing this- I am open to suggestions
Posts: 2
Reputation: 179

Post » Mon Dec 16, 2013 7:48 am

There should be no need for imagepoints.
If you have all the origins set up to be on the left upper corner you could use the relative distance between sticker and upper left corner of the user media object as a reference.

Compare the height and width of the user media object in "edit mode" with the height and width before export and adjust the size and position of the "sticker" accordingly.

LittleStain2013-12-16 07:49:15
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
Posts: 6,160
Reputation: 19,775

Post » Mon Dec 16, 2013 9:43 pm

Okay, thanks :) I honestly needed help putting together the logic.
I had all these complicated ways- but figured I was thinking too much into it.
Posts: 2
Reputation: 179

Return to How do I....?

Who is online

Users browsing this forum: matriax and 30 guests