Wanting to expand upon the use of Construct2/HTML5, I recently made the switch from wxwidgets to HTML5 form elements.
Having done so, I recently ran into a somewhat unfortunate issue that I hope someone will be able to help me alleviate.
It all began when I started implementing simple, draggable window sprites which I would then overlay with one or multiple buttons.
Pinning those buttons to the sprite worked rather well until I realized that, upon dragging the window, the button would always lag a bit behind.
Unfortunately, I cannot currently upload the .capx but it's something that is rather easy to reproduce.
1. Create a sprite
2. Create a button
3. Add pin behaviour to button
4. Add drag and drop behaviour to sprite
5. "On Start of Layout - Pin button to Sprite
The only solutions I could find so far are:
a) Replace buttons with sprites (would be a shame, considering the flexibility I get from CSS styled buttons.
b) Destroy and recreate the button whenever the sprite is dragged (doesn't work too well and is probably a huge resource hog)