Il faut éditer le code html, le fichier "index.html" que Fusion fabrique quand tu construits l'appli.
ATTENTION : une fois modifier, Fusion écrasera ce fichier la prochaine fois que tu construira...
Type: Posts; User: Francois; Keyword(s):
Il faut éditer le code html, le fichier "index.html" que Fusion fabrique quand tu construits l'appli.
ATTENTION : une fois modifier, Fusion écrasera ce fichier la prochaine fois que tu construira...
What is your browser? It is the last available version?
It appears on a very few machines and browsers, and I have absolutely no clue why.
I dont really understand, sorry....
My fault. Gonna work on it right now.
What keys do you use?
Sorry to come late on this!
It is very simple to make a frame preloader WAIT FOR USER INPUT. Or make your preloader last as long as you want, even after all the data is loaded.
Just use the...
Argh I meant HTML5 Développement. Stupid Android spelling correction.
Can you upload your app?
The speed really depends on the device itself capabilities. HTML5 asks for a lot of resources from the phone, as it is a high level langage. So if you phone is not quite new, then the processor has a...
Can you build your game in HTML5 Development (VERY important), and upload it to your server?
Then please give the URL. Also, please send the MFA (by PM or just put a link in the forum if you do not...
Great! Thank you...
Nope : this is a problem with HTC : I looks track of the finger when it moves out of the scene. So you have to raise the finger and press down again. I still have not found a proper solution against...
??? I never put this.in my code (or have a very bad memory) (which I do, but this is another story).
What extension ô jets do 6 ou use in your game?
- Clique à droite sur scène (endroit vide)
- Choisir objet actif
- Poser objet
- Double clicker dessus
- Dessiner objet
- Évent editor : objet souris clavier, l'utilisateur click sur un objet,...
Can you build you application in HTC développer, upload it to a server and send me the link. Also.please post the mfa.
Not instant? Since a recent version? But I did not change anything in that code...
Can you post a demo mfas?
Been a little busy these last days, but I'll get on it...
Fusion mfas are much more compressed. 2Gb would be very very large and unlikely.
You have to upgrade 😆 sorry!
This is a good decision I think.
HTML5 games can be wrapped as true iOS and Android apps, that you can publish in the App Store and Play Store too, so there is no limit actually.
Test for falling? Do you mean discover if an object IS actually falling?
eeeeh, I have no real indication on my side from the engine.
You could just get the Y coordinate of the object, get the...
I guess you should record a video or post your mfa, it will be simpler for us to understand...
Caches are still a big mystery to me... Never understood really how they worked on various browsers...
I'm going to work on an easy solution as soon as I can.
This cannot go on, it is a mess.
Le plus simple est de faire tes boutons avec des objets actifs : tu pourras dessiner ce que tu veux, et avoir des animations. Libre à toi de faire un "tour" comme un bouton ou non.
The active object has been heavily corrected in one of the very last versions. Are you sure you have 283.1?
Progress little by little, just set one simple task after the other : you'll achieve it, move to the next one, and at the end be amazed at what you have done.
... because it is a very complex extension to create on this platform, that could generate bugs if implemented.
And me : when you load an application and one of the extension is missing : it would be really nice that the missing extensions are pre-selected in the Extension manager (no need to look for them). ...
Yes, I'm gonna work soon now on the fgl object.
Because I did not implement it. It is not a default option of Box2D, it needs work on the programmer side.
As soon as I have 2 days to program it, and a couple more to handle all the debugging...
Argh! Sorry, I have missed your post (the forum is wierd if you use the "New post" option).
Can you :
a) Build your game in HTML5 Development
b) Upload it to a web server
c) Give me the link
Yes, there are some problems on Windows Phone. The major problem being to find a simple way to debug HTML on this platform :(
Just store the previous values in Counters (named "Old - something")
Read the INI file into new counters (New - Something). Compare individually each new value to the old : if they are not equal, it...
Il y a des problèmes sur la propriété "Autoriser en local", je pense que c'est la raison des problèmes rencontrés par la plupart des utilisateurs. Je vais voir si on ne peut pas la désactiver tant...
- Get the value in a string "New string", every minute
- Compare it to a another string object "Old string"
- If different, then start a fast loop, based on the number of the characters in the...
I have ran your game, and I do not understand what you want to do.
Can you be more explicit and I will be able to help you!
Le problème peut venir de plein de choses. Versions sur l'ordinateur, fichiers dans le cache des navigateur...
Au fur et a mesure des versions du runtime HTML5, cela arrive de moins en moins...
In Windows runtime, just use the system object "Execute an external program" / "From an evaluated pathname" action, and enter the url, starting with "http://". This will open your default browser.
The platform movement was the most difficult to program, and I had to find solutions to make it. Applying impulses is difficult as it messes with the other calculations of the movement.
So I did not...
Are you using the free version? I cannot see the source code of the runtime...
If not, please compile as I said in HTML5 Development and repost your app.
Flash is not supported anymore.
HTML5 is supported actively everywhere, on all platforms. More and more.
This should drive your decision : choose a technology that will be alive in two years.
Can you build a game that does not work in HTML5 Développement and upload it to a server?
Then give me the link a the MFA. I'll be able to see what is wrong.
I would rather look at the sampling frequency of the song : the lower the faster it will play (less data to manage)...
Wrong URL for the first one...
Have you rebuilt it in Development mode, and re-uploaded it to your server? Can you send me the modified mfa?
i'll have a look once again.
If you cannot get it to work, please build it in HTML5 Development, upload it to a server, and send me the link. Also please send me the mfa (which should be the exact same version as the one...
Yeah. Soon I'll implement Google fonts for HTML5. I've got all the routines from another project...
OK tested the link, it works great on my PC on Chrome, Firefox, IE.
It displays after loading an advertisement page for the server, dont know if this has an effect. Not on my machine anyway.
OK. Here is the method for 0, 1 and 2s
Create a counter for 0, 1, 2s etc.
-> Store the number in a string object, using the "Number to string" expression in the string object expression menu
Problem in the Quiz Template is corrected. Could not see anything related to "disappearing object", but the edit zone "Text has been changed" condition was only true when the cursor quit the...
Can you post your mfa (or send it to me?). I'll have a look.
Nope, I am clearing my HTML5 bugbox today...
Fernando, I think the solution if for you to quickly build his mfa, try it on one of your devices and see what happens...
Est-ce que tu peux construire ton mfa en HTML5 Developement, le télécharger sur ton serveur, et poster le lien?
Je pourrais voir exactement ce qui se passe...
Can you post you mfa? I'll try it on my iPad...
OK, I cannot understand you program completely (with behaviors it makes it difficult as well).
I think you have to use Fast loops to solve your problem. You see, when you have a condition like ...
You can check the number of aliens live on the frame in the even where you play the sound, like this (it will also prevent the player to shoot when there is no more aliens):
Every 1 second...
Are you pressing the "Build and run" button (located on the right of the Play application button)?
It does not even open an empty browser???!!!-
Hehe, dont say that something is not easily possible in Fusion, even if we did not program it specifically (I wonder why we did not do it, as a "When sound ends" condition is really needed).
Strange, I see no difference on my machine with or without the flag. Work fine in both cases...
J'imagine que vous utilisez le mouvement "Physique - Voiture de course?"
Le moteur physique Box2D n'accepte pas les objets creux.
Or le bord d'une piste est un cercle creux.
La meilleure solution...
Without seing your code it is difficult to help you. The "destroy" action, does it point to the object contained in the "User clicks on object" condition?
Well, S3, although not from neanderthal, is not really new. HTML5 is rather new and needs some strong processors. So I cannot say. How many physics objects? Loops? Etc.
Jeff has just told me that you have called the US office about that. When I wrote this, I actually did not know when a new version was scheduled (may be I should have said it in a better way)....
OK I think I found out why it does not work.
- The URL of your application is "http://biomanbio.com/..."
- In the second frame, you have copied the HiScore example, and you use the URL Edit text...
Is the ball you are tapping to also included in a simple collision detection condition?
Like "Collision between Ball and Ball / Do something"
In the current version, Fusion does NOT save the...
I dont understand.
You are using the real "Timer" object of Fusion, or the Click object?
Both use directly the system time of the machine!
If you use a counter that you increment at each loop,...
First thing to do, is in my opinion to check the pathname of the exe you are trying to run in your loader. The problem might be as simple as an incorrect pathname in Windows 7.
I suggest at first...
Today is a HTML5 day.
Javais beaucoup d'espoir lorsque j'ai fabriqué l'objet Quiz, et c'est pour cela que je l'ai fait aussi complet.
Après sa sortie, en fait, presque personne ne s'y est intéressé, pendant plusieurs...
INI on mobile devices (Android and iOS)
The INI object totally ignores the pathname of the INI file. It only uses the name and extension (filename.ini), and stores the file in default storing...
Have you tried justy to DISPLAY the string you are creating with the AppPath$? Just put it in a string object on your frame.
I often do that when it does not work : you will see immediately that it...
Sorry for multiple posts.
Multimedia Fusion was only creating ANSI applications, those applications only worked well on English machines and some languages like French.
Fusion 2.5 is 100%...
-> ANSI is the name of text coded on ONE byte only. This means values from 0 to 255. This range of number is only large enough to represent the characters of the English language (no accent), and...
Argh, I though the physics Platform movement was flexible enough. A lot of things are already in properties.
I do not think it is really possible to do what you want. A customizable "Jump" action...
OK, it is now in my todo list when I work on fgl (soon).
Actually, machine independant speed has no effect on HTML5 (I should remove it)
J'ai répondu en Anglais :)
En ce qui concerne le temps de chargement : il faut voir ce que tu utilise comme graphiques et sons.
Graphiques : combien d'objets et d'animations. Comment les images...
Are you sure about what you save in the INI? 170Mb is a lot of space and many many lines of INI file.
If you clean the application data, and restart your game, is the space immediately taken, or...
Outcast : so one of your game does not work?
Can you build it in "HTML5 Developement", upload it to your server and give me the link?
Great that it works now.
Never heard of the necessity to resize the banner in a fgl game.
Can you ask them for more info about the necessary sizes of banner depending on the size of the screen and post them here?
OK. Yes, there seems to be a problem with animated physics background objects at some point in their animation.
BUT, and as always in Fusion, there are ways to go around problems. May I suggest to...
Strange : when I debug your game in Chrome, I can see that the structure of your game on your server is :
This cannot work! The HTML contains...
I never noticed any major speed difference with Firefox. What about installed extensions? And version?
OK promise I'll work on this this week, and provide a solution with PHP (yuk) liked to Fusion. I hate PHP.
Basically use the Multiple Touch object.
- When a touch is startedn, store the X and Y position of the touche in a variable
- When the touch is moved, set the X and Y position of the screen to the...
Je pense qu'au bas mot, il me faut 15 jours pour porter cet objet... C'est une très grosse tache.
There are multiple ways to do this. This thing is : how protected do you want it to be?
The trial object (which may work fine, just try it!) is protected. It is also protected if you change the...
Yes, a example MFA of what you want to do would be handy.
- The car come with a path movement.
- When the car is stopped, you detect the keys and take the photo.
- The photo will be another pre...
Nope : it you game gets too big in memory, Windows will swap on disc. This can get to really huge amounts (several gigabytes). But it will get very very slow.
I personally cannot install XCode6 on my old Mac.
Maybe Anders can answer?
Simple enough. I'll have a try (not used my Dropbox for ages, as I have switched to Google Drive, much cheaper for 100Gb).
I see nothing for the moment unfortunately.
There are some online libraries that render html code into a the canvas, but they are quite heavy. I'll have a look at them.
Difficult to answer without seeing the code.
You will overpass the collision detection if you directly change the X and Y coordinates, and the cars will overlap.
Have you thought about using...
Yes, it is possible to joint objects together : they are links by an invisible axis. Then physics work on the whole set.
Have a look at the "PIN" object, this is the simples solution to link two...
Personally I have never used Dropbox to publish a game. Olivier seems to say it works.
Olivier can you help us here? Is there some specific manipulation to do to the game folder so that it is...
No space in project name, nothing different from other projects, appart it being Under XCode 6?
I'm afraid so. I think I'll make an officiel beta publication of the HTML5 runtime over the week-end.
Warning : the amount of RAM displayed includes all the necessary to make a Windows game work (Windows handling + all Microsoft libraries). The game in itself (images + graphics) is smaller.
Check the "Play sounds over frames" property in the "Runtime options" tab of the application properties.
If you use Fusion 2.5, I highly suggest you use Physics :
- Drop a Physics Engine object
- Assign a Physic - Bouncing ball movement to your ball
it works a lot better, real physic and real...
OK. Corrected a bug in the default preloader routines, that made the game stuck upon entering the second frame.
It works now, on IE, Firefox, Chrome.
Dropbox can host files directly with MIME types properly set?
Strange, this code is already in the application.js file!
Any cheap one is good. Do a search for "Cheap Web Servers" on Google. Or "Free Web Hosting".
There are free ones, like http://www.000webhost.com/
Amazon Web Services servers are 100% free if you do...
Alors est-ce que tu peux m'envoyer ton MFA en me redétaillant ce qui ne vas pas (car j'ai je suis un peu largué là)...
I think it comes from the "Allow offline" option you have checked in the HTML5 properties of the application. I need to work on this property, as I was never really sure of it.
I have unchecked...
Can you build your app in development mode and send the app folder to me? (along with the mfa?)
I'll look at the HTML...
Nope. If the name of your application is "awesomegame", it will create a "awesomegame folder, and a "index.html" file in it to start the game.
So you can use the URL "myserver.com/awesomegame".
Yeah. Fusion displays what 81 displayable from the frame. 1280 X 720 in landscape for example, and 720 X 1280 in portrait. No automatic placement or anything. Just the objects of the frame.
Can you rephrase the question? I don't understand it...
OK, I would need to confirm that (specially the fact that I coded it very badly :))) Can you send me your mfa and explain to me what does not work?
I'll see what is going wrong...
Try "resize to window" in the display properties : the app will take the whole browser space.
Or just resize the browser so that it is bigger than the game.
Do you have the last version of Fusion?
Did you answer "YES" to Windows question "Authorise Fusion 2.5 to access local network" (firewall?).
Can you go in the control panel, firewall, and disable...
Well no. The runtime is structured in a way that it should be very easy to implement a WEBGL renderer
If anyone wants to write it...
Yeah, websockets are fantastic. Please give me 30 fingers and 50 hours days.
He, I remember implementing the cursors in the HTML5 object!
Something has been lost somewhere.
Can you use anther font name (just to refer to the graphic font objet), with the same height, for other colors?
Hehe "thread hijacker" fun concept. To answer your question : no, I don't have that in plan. There are many available on the net. I think a good feature would be to have an object that allows you to...
And this problem is corrected btw.
I am on holidays right now : I'll be back next Monday...
Ink effects are different between c++ and HTML5. We did our best. The game does not use the same graphic display routines at all, it was not simple. HTML5 canvas only supports a few ink effects, and...
The extension does work
Can you send me your mfa? I'll look at it next week back from my holidays (please put a link to this thread in the message).
HTML5 is very finalised. It is a fantastic system with endless possibilities.
It is true that it is slower on small processors, but phone are constantly changing.
When my profiler is finally out,...
About the "When user click on a button" bug, did not come on this one yet in the bug list.
Have you posted an example m'a in the bug report?
Fusion tries also to maximise the loading time, even in mosaic me. So the same image can be duplicated in various mosaics, do not be surprised.
This answer is very true: we unfortunately could not get consistent results with WEB G so we had to drop it.
So no, for the moment, only semi transparency is supported in HTML5.
OK, can you rebuild your example in HTML5 Development and reload it to your server?
It is right now in Final project mode, and I cannot debug it.
Warning : I'll be on holiday starting Friday till...
OK just tried with the last released version of Fusion it works.
I think there is a confusion here, and I sorry I could have told you sooner.
Fusion HTML5 games do NOT work when you just...
Actually, just checked. It is called "Créer une image vide" (create an empty image) in the French version, and "Create an image" in the English version.
This is a game, and the frame is erased and redrawn at every loop.
So such an extension should store a list of what you have actually drawn on the screen, and redraw it at every loop. If it does not...
Just enter the url to the image in the pathname property, or in the "New image" action. I have just tried it in Chrome, IE and Firefox, it works, on both local and distant.
You mean that the FPS *is* 60? 60 means 60 Frames Per Second... so this is not slow.
Anyhow. There is no easy answer to this. Mobile devices are much smaller machines than a PC, and even if it is...
I'll check with array.
Too much "bass"? Sorry, I do not understand this word (being French). Can you explain?
If you read the properties, you have a section named "This font poses for". In this area, enter the name and size of the font that the GraphicFont object is going to replace.
For example, you enter...
Argh je suis en retaaard
The GET object only works when accessing a file on a real web server, and only IF the html page where the application is located lays on the SAME server as the file.
This is a protection against...
This is finally corrected. INI included as binary files now work, in UTF8, Unicode or ASCII.
Very fun! Well done.
I'll be on it this week.
Qu'est-ce que tu appelles "boite de texte"? Sur ma version, j'ai bien "Boite d'édition".
Fais attention toutefois sur plateforme mobile, c'est moins rapide (les processeurs sont plus petits).
Nous allons bientôt sortir en béta test un Profiler qui permettra de voir ce qui se passe à...
Yes, a step-by-step tutorial on how to achieve this would be great.
OK I have located the problem (but not yet corrected).
It is a Unicode / ANSI mismatch : when the INI is embedded in a MFA, Fusion tries to load it in Unicode (two bytes per character) whereas INI...
There is no solution for the moment on tablets.
Tablets are very protected (specially iOS), and applications must go through the official "store" channel (meaning you have to be an iOS or Android...
Finally got DSL in my new home, it will be easier now.
About AppCache : it DOES work, in fact too well. Under Chrome on my PC, I found it very difficult to erase the application from the browser's...
Nope, it is not a bug. Screen Zoom for the moment is visual only. I am _very_ bad at math, and doing the calculations scared me a lot.
I have not personnaly followed this tutorial.
As Ben says, there are security restrictions.
We will work on solving your problem next week.
Him and I will work on solutions to make things a lot...
I am quite sure that INI file works in HTML5 as binary files in your application.
- Under Windows, create your application with the INI file beside your mfa (the INI object should have the complete...
Yes he can : DracisLooby, aka 'Ben' now works with me :)
An "On Call" function for the HTML5 object (that generates an event) is something I wanted to do for a long time, but have no change to...
By design, the features of the fgl HTML5 library are limited.
When you send a game to fgl, they create multiple versions of your game adapted to each distribution platform, by changing the...
The loading problem on iOS was a bug : Yves has corrected it recently, it should work great now. I suggest you retry your applications with the latest version.
HTML5 support on iOS is not bad at...
I will ask Ben to work on it as soon as he finishes his current project.
I have not yet decided on what to do. it has to be open and simple. We cant just add new properties to the already long list.
Sorry for the inconvenient. Here is the MFA :
Actually, there is quite some ground work done by Fusion when you drop the FGL object : the SDK only works with a specific index.html and only in a specific display mode (resized to the size of the...
Thanks! I tried to make it very simple.
The fact is the runtime code manually does the following code :
document.documentElement.style.overflow = 'hidden';
document.body.scroll = "no";
... which is a bad design from...
Ha! Forgot to put it in the last post, sorry. Here is the exact content of the directory I uploaded on my server, and that works.
Here is a demo of your application working.
What was wrong?
- The mp4 file must be in the same directory as the "index.html" file. If you use another directory, then in...
No, I do not know (yet) why this happens. But soon.
Found it : the "Left mouse key has been pressed" condition was only valid when the key was released.
This will be corrected int he next beta version.
Ha! Yes. I have to find where the file is located now...
OK can you try this link :
and tell me if it works as you want?
What I saw was that it did not work at all, even with the latest version of Fusion, on Windows.
Gonna try on a mobile browser.
OK several problems here.
- EDIT BOX object, "Text has been modified" did not work as on the PC
- Problems in the HTML5 version of the Active System Box object, ignoring the clicks
These will be...
FGL is a game advertisement and publication brooker. They connect the author of the game with game plublication platforms, and provide a simple way to include advertisements and Leaderboards in the...
OK gonna look at it.
Yes, the $200 offer is valud for Fusion games as well.
Go on their page for more information : to get the $200 you have to implement the complete API in your game (which is simple)....
Corrected in next build (283.1?).
I'll publish it sometimes next week as a private beta...
Tu peux faire une toute petite démo (sous forme d'un mfa) du problème de son, et la poster sous la forme d'un bug dans la bugbox?
Yes, thanks, forgot about it. Embedding in frames does work (are frames are really independant web pages displayed on the same screen).
Google has published a new version of their Chrome browser, it seems that there are some problems with it. Working on it.
Are you using the GET object? If yes, the html and data files must be present on the same server on which you are uplodading data from with the object. If they are not, the HTML5 application will...
OK I ran you application.
When you use a "Button" object, even in HTML5, it is actually very different from platform to platform, and depends on the OS. At the end of a frame, all the objects are...
I have been absent from the forum for a couple of month now.
I'm back. So if you have any difficult questions or problems, do not hesitate to ask them.
Remember that the bugbox is...
If you want to do a change that is persistent in the runtime between builds, you have to change the code in the data\runtime\HTML5 folder of your installation of Fusion.
This is where the code used...
Actually, I have never liked jquery and always refused to use it :)
Just the "$" syntax I dont like.
But yet, it is very powerful. So actually, I do not know what is going on, some kind of name...
Ha yes, I do prevent scrollbars in a webpage.
This should be a new property in the application.
But adding properties after properties takes time and makes the interface clumsy. I have another...
Actually, having multiple application on the same page is something on my todo list, and I have not done it yet.
It implies a little work, for the main game loop timer calls.
Once I have completed...
Can you post a bug in the bugbox along with an example mfa that crashes?
Actually, I did not work on this. Now that I'm back, I will see with Ben on how to implement it in the runtime.
Argh. I will have a look.
Super joli! Bravo.
As-tu rapporté tous les problèmes que tu as rencontré (a part le coup de l'objet Magnet qui empêche la compilation) sur la bugbox?
José, not to criticise, but your games (as I have seen from the versions you sent me for debugging) are really, really heavy.
I am sure there are ways to clean the graphics, resample the sounds to...
This is not a big error. This is actually a simple mistake in the html file that has no consequence in how the application works. I always forget to correct it.
Dont understand : do you get a result...
Not in this version. We are working on it to get it perfect.
I have no problem with your example.
Please note that if you click twice quickly, the second click will be reported as a double click, and not a single click. You should test for both to detroy your...
May be a browser cache problem : the old application or the old video was in the cache. The cache has been refreshed and it works.
I often get cache problems when I work.
Sound problems on iOS devices will be entierely corrected in the next version of Fusion. To be out soon at least in beta test.
I do not know, as I have not tested. Aren't iFrames supposed to be a kind of sand box? Going full-screen would be a breach of the sand box I think, but I do not know really.
I dont have the profiler ready yet. I'll keep you posted as soon as I can test your game.
Only older navigators run on XP (at least for IE). They are less optimised for HTML5 than newer ones.
I have to install the last version of Java and see if I have problems.
For the moment, just set the Build type to HTML5 Development, it does not user Java at all. And it builds faster too.
Strange! Can you post a bug in the bugbox?