Feature request: Dynamic image and text loading

Discussion and feedback on Construct 2

Post » Thu Jul 10, 2014 1:01 am

I am using Construct to build a website in addition to the game itself, and I ran across an issue where I am attempting to dynamically load content from a JSON file like:
{
"p1":["This is a paragraph of text for JSON delivery. 1","500","200","2200"],
"p2":["This is a paragraph of text for JSON delivery. 2","500","300","2200"],
"p3":["This is a paragraph of text for JSON delivery. 3","500","400","2200"],
"p4":["This is a paragraph of text for JSON delivery. 4","500","500","2200"],
"p5":["This is a paragraph of text for JSON delivery. 5","500","600","2200"],
"p6":["This is a paragraph of text for JSON delivery. 6","500","700","2200"],
"p7":["This is a paragraph of text for JSON delivery. 7","500","800","2200"],
"img1":["wizard2.gif", "800", "900", "0"],
"img2":["Wizard_Male.png", "800", "400", "0"]
}
where the array elements are: ["text","x-location in pixels","y-location in pixels","text box width in pixels (or 0 for images)"]

This has required me to create a very large number of objects (and their corresponding events) per page in order in order to contain unique content in each object.

It would be nice if you could somehow expand the "Image Animation" feature such that you can dynamically create new sprites from an animation frame (or just keep already created image sprite instances on their current frame and allow new instances to be independently flipped to a different frame), allowing the loading of multiple images into a single sprite object (and it would be nice if something similar for text objects could be implemented).

It would expand Constructs market from purely being a game making engine into a broader website creator tool.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,414
Reputation: 4,822

Return to Construct 2 General

Who is online

Users browsing this forum: kanjmarrie and 5 guests