jatin1726's Recent Forum Activity

  • What do you mean by "not responsive"? To scroll with mouse - On mouse wheel move the panel some distance up or down.

    I don't know how you display the weather, probably send a http request to some weather web service via AJAX, then parse the response.

    Hi Dop, with 'not resposive' means that the thumbnail size tries to auto fit as per the availalbe resolution. as css media queries does the work.

  • Hi Friends,

    I am looking for this following plugin which can import .obj 3d model into construct 2 and that 3d model could be rotated scaled etc. Could anyone please share if you have the plugin or alternative plugin (please don't suggest q3d it is already dead and hardest to even start)

    More info about plugin:

    construct.net/en/forum/extending-construct-2/addons-29/plugin-object-3d-alpha-0-3-44869

    Regards,

    Jatin

  • The correct way to parse response from the weather server is to feed it into JSON plugin, but if you only need to retrieve a couple of values, you can use this method:

    https://www.dropbox.com/s/n8oo19a0aa2bauu/WeatherData.capx?dl=0

    If this doesn't work in preview mode, open browser console. If you see "Origin localhost is not allowed by Access-Control-Allow-Origin" or similar error there, this is CORS issue, search the forum for solutions.

    Dop, right now I am feeling like you are savior god for me. This worked exactly as was my requirement. Thanks a ton ton and tons. God bless you in everyway you wish. You r the best.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi Friends,

    I need help in inserting result of this weather api into a text box. Api is openweather api. Iam not good into reading api. Can you please help me in extracting api result value in text box.

    	<html>
    		<body>
    api : "https://api.openweathermap.org/data/2.5/weather?q=mumbai&units=imperial&appid=d5bce51716019821834a169506c4fce6"
    		</body>
    	</html>
    

    "https://api.openweathermap.org/data/2.5/weather?q=mumbai&units=imperial&appid=d5bce51716019821834a169506c4fce6"

    Please help guys. Need this urgently.

    Thanks in advance.

  • > updated link

    hi, link is not showing result as yahoo has deprecated this api. can you please upload newer capx working one?

    Thanks

    guys please help me

  • > You mean instead of the list 1 item wide and 100 rows down you want it to be 4 items wide and 25 rows down?

    > dropbox.com/s/1676stwx1ysnz9n/ScrollingList4columns.capx

    Hi Dop,

    Yup like this but two things I noticed, this way it is not going to be responsive and secondly mouse scroll never works, can you tell me how mouse scroll will work?

    Dop, sorry to bring it here, but very urgently need help to display current location weather. Can you help me with construct 2 in that ? old capx here is not working at all of forums.

  • You mean instead of the list 1 item wide and 100 rows down you want it to be 4 items wide and 25 rows down?

    https://www.dropbox.com/s/1676stwx1ysnz9n/ScrollingList4columns.capx?dl=0

    Hi Dop,

    Yup like this but two things I noticed, this way it is not going to be responsive and secondly mouse scroll never works, can you tell me how mouse scroll will work?

  • Hi Friends,

    Need help in displaying images1 when it is raining and image 2 when it is sunny. How can i achieve this using free api. I checked forums but old examples are no longer working. Most of their api have been deprecated. Please help me. Need urgent help.

  • If you load images from URL, you still need 100 empty frames. So set frames from 0 to 99 for all 100 instances of the sprite. Add an instance variable isImageLoaded, and add this code:

    > Every 0.1 seconds
    Sprite isImageLoaded=0
    Sprite Y<3000
    	Sprite load image from URL "http://mywebsite.com/pic" & Sprite.animationFrame & ".jpg"
    	Sprite set isImageLoaded to 1
    
    

    Hi Dop,

    That worked nicely, thanks a lot for the support. After implementing this I am stuck with a new issue. The sample capx you have shared for scroll up works good if it has one column. If it has more than 3 or 4 coloumn then (we can assume each thumbnail is square may be of 300x300px). We usually see websites like this. How can I implement your code for multiple coloumns. Thanks in advance.

  • If you want it here's a quick capx example :

    https://dl.dropboxusercontent.com/u/139218609/examples/weather.capx

    There's a lot more information returned from the request then what i choose to list, chance of precipitation, wind speeds...

    I understand that this thread is very old but I need it urgently. Can anyone please upload weather api capx please.

  • updated link

    hi, link is not showing result as yahoo has deprecated this api. can you please upload newer capx working one?

    Thanks

  • It depends - where do you have these 100 images? are they all in one sprite (as frames/animations), or multiple sprites, or do you load them from web in runtime?

    If you have one sprite with 100 frames, there is nothing you can do, the whole sprite will be loaded on layout start. If you have 100 separate sprites, you can create them as user scrolls down.

    Hi Dop,

    As of now I have 100 frames in one sprite. so It is difficult to implement lazy loading. I also tried that I should try capturing UID of the box created in realtime and give it some sequential id and then call image from url. But it is not working. It always load same image for 100 blocks. so I am stuck in implementation of lazy loading. and my list is becoming heavier due to so many images have to loaded while lading the game. Can you help me out in this?

    REgards,

    jatin

jatin1726's avatar

jatin1726

Member since 27 Oct, 2014

Twitter
jatin1726 has 4 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • x2
    Popular Game One of your games has over 1,000 players
  • x25
    Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies