Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by espace

  1. hi, Since time ago, my games was on dropbox only 15gb with special offers now i discover mega : 85gb for free - all platforms and more responsive than Dropbox. Happy new year !
  2. Hi, I have a specific question based on this case... Assuming i have this objects : pig[0] pig[1] ball if i check the distance on y between ball and the pigs and if i want the biggest value trough the pigs and after do a specific action on the pig who have the biggest value ? i try with array.sort() but i can't find a solution to after identify the concerned pig... Example : ball.y - pig[0].y = 54 ball.y - pig[1].y = 120 ok its pig[1] => do a specific action on it ! Thanks
  3. Hi, I would like to know the lowest value on my array. So i make var arr=[0,1,2,3] console.log(Math.min(...arr)) => 0 ok The problem is that my array contains this : var arr=[null,0,2] var min=Math.min(...arr) arr.indexOf(min) => -1 because it take null as lowest value...how to eject the null value ? How do you eject the null value from the Math.min() ?
  4. Hi, Could you put a code example ? It help me a lot.... Thanks
  5. Cool concept but the graphics could be better, more attractive... The speed could be also faster. Have a good day.
  6. hi, Assuming i have this scene config who start in this order : # boot # preload # title # main My "main" scene require a lot of times to load +/- 2seconds So what i would like is to make this : # boot # preload # title => preload #main during this state # main => when i go to this state, it take less time because the scene is preloading during the "title" scene Is it possible ? I don't see anything in phaser examples...thanks
  7. Hi, I have two sprites (button_move and button_fire) with two touchs events. I want to have multitouch enabled : when i press on the same time on the two buttons, normaly the alpha of the two buttons is 0.5. But it’s not working. I have follow the docs, especially this : https://rexrainbow.github.io/phaser3-rex-notes/docs/site/index.html/touchevents/ 1 https://labs.phaser.io/index.html?dir=input/multitouch/&q= And i made a jsfiddle about it : https://jsfiddle.net/espace3d/vLq08gke/12/ 2 the full code is : var config = { type: Phaser.AUTO, width: 480,
  8. hi, curiosly when i use scene with phaser 3 like phaser 2 i see my previous scene behind my active scene... How do you do to have the same behaviour than phaser 2 : not see the previous scene in the active scene ? console.clear(); var config = { type: Phaser.AUTO, width: 1480, height: 2270, backgroundColor: '#0d1018', physics: { default: "arcade", arcade: { gravity: { y: 200 } } }, callbacks: { postBoot: function (game) { // In v3.15, you have to override Phaser's default styles game.canvas.style.width = '100%'; game.canvas.style.height = '100%'; } },
  9. hi, on the example it works : https://phaser.io/examples/v2/audio/pause-and-resume#gv but on real it doesn't works .....? Phaser CE 2.12.0 - on firefox and on android var s={}; var f={} f.create_sounds=()=>{ s.music=game.add.audio("music"); s.music.volume=.5; s.music.loopFull(); } f.mute_sounds=()=>{ s.music.pause(); } f.create_sounds(); //ok i hear the music setTimeout(()=>{f.mute_sounds()}, 1000);//not works What is wrong ?
  10. hi again me ! thanks for your previous solution. I have another request that looks a lot like the first but I can not solve it. I would like to have random object in x first. Then i would like to move them and when they reach -400 in x (left outside the screen), their position is set to 2000 (right outside the screen). The problem is that i see the "restart effect". It's difficult to me to explain... look at this snippet, it's easier to understand https://phaser.io/sandbox/edit/NEkknTBO function create() { var sprite=[] var tw=[]; fo
  11. hi, I would like to make a perpetual movement with my sprites to give the illusion of movement. In the snippet below , if the sprite are stars you will understand that for example a rocket move trough. The problem here is : on each movement i would like at the oncomplete function move the sprite randomely on Y but with repetition on -1 it don't works. How could i do to achieve that properly ? Thanks http://phaser.io/sandbox/edit/NaYAGwfv function create() { var sprite=[] var tw=[]; for (var i = 0; i < 5; i++) { sprite[
  12. oh my god 🤔 thanks have a good new year
  13. Hi, I have made this sandbox to illustrate that don't works. What is my mistake ? http://phaser.io/sandbox/edit/wzqZsYny Thanks. //part of snippet function create() { var sprite=[] for (var i = 0; i < 40; i++) { sprite[i]=game.add.sprite(i*10, 0, 'phaser'); sprite.inputEnabled = true; sprite[i].events.onInputDown.add(function(){console.log("clicked")}); } }
  14. Sorry but i don't understand. It 's not possible with combo ?
  15. I forgot to specify i use w2ui.js. here is the doc about the combo : http://w2ui.com/web/docs/1.5/form/fields-list
  16. Hi, I have made this jsfiddle : https://jsfiddle.net/espace3d/1dz5yhot/ What i want is add a new item when i press the enter key (see addItem function ). But i can't access to the item with w2ui.js. Wich variable must i use for that in my addItem function ? Thanks for your assist. <!DOCTYPE html> <html> <head> <title>W2UI Demo: fields-3</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> <script type="text/javascript" src="https://rawgit.com/vitmalina/w2ui/master/dist/w2ui.min
  17. Youpppppppppeeeeeeeeeeeeeeeeeeeeeeeeee Success by copy the files under the licenses directory from ~/Android/Sdk/licenses to /usr/lib/android-sdk/licenses. Big thanks to you Milton. Have a nice day.
  18. hi, again problem i have install the build tools and accept the licenses and i have this error below: ./sdkmanager "build-tools;19.0.1" ./sdkmanager "build-tools;26.0.2" ./sdkmanager --licenses All SDK package licenses accepted.======] 100% Computing updates... BUILD FAILED in 1s /home/syst/hello/platforms/android/gradlew: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':CordovaLib'. > You have not accepted the license agreements of the following SDK components:
  19. Yes 27.0.1 is missing. I must try on an virtual machine because I don't have any space on my session. I try tomorrow. Could you help me again tomorrow if never ? A big thanks for your assistance.
  20. sure syst@syst:~/hello/platforms/android$ cat build.gradle /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,
  • Create New...