How can I retrieve images, videos etc. from AJAX object?
I can retrieve it simply, I know, but how can I insert, maybe, an image loaded with AJAX, in my game?
Develop games in your browser. Powerful, performant & highly capable.
You make an ajax Request which contains the url of the image and than you say Sprite Load Image from Url ("Ajax.X").
Do you know the Hash Plugin ? It will help you much to work with Ajax data ;)
For videos I cant help you, I never made something with that.. But I think it would be possible with an iFrame.
So can't I have, maybe, an HTML page(With images and texts) loaded directly into a Construct 2 Object?
Sure you can.
The Load Image from Url just loads an Image from an Url and set a given Sprite to this.
This means you make a mockup from your page with sprites(just filled with the color of your choice) and than after the Ajax Request you grant them the right images.
Loading Screen. With this Tutorial you can make your own Loading Layout, so you can load the images before the page gets shown. But don�t forget the Sprites you want to replace need to be on this Loading Layout!
Manual for load Image from Url