Could anyone who owns PS controller please tell me what value is returned by Gamepad.GamepadID(0) expression?
I've answered you in your other post:
construct.net/en/forum/construct-3/how-do-i-8/read-write-data-ini-file-157174
Develop games in your browser. Powerful, performant & highly capable.
No, it's a mistake in your expression. Url parameters need to be separated by & character. Which needs to be inside the quotation marks.
DATA: "name=" & varName & "&mail=" & varMail & "&pass=" & varPass
Do, you know of a technique to READ the VALUE "after" the "=" ???
Yes, use tokenat(), it's in my demo.
Any idea how to separate every two digits of a string?
Use mid() expression. For example mid("112233445566", 6, 2) will return "44"
construct.net/en/make-games/manuals/construct-3/system-reference/system-expressions
Yes, that round sprite is a revolute point, like a nail.
How do I detect gamepad type - Xbox, PS, other?
There is an expression GamepadID, which returns make and model, but what values should I look for?
(I don't have Xbox or PS controllers)
This doesn't look right:
DATA: "name ="&varName&"mail="&varMail&"pass="&varPass
It will produce a string like this:
"name =Johnmail=john1990@gmail.compass=qwe123"
Try changing it to this:
DATA: "name="&varName&"&mail="&varMail&"&pass="&varPass
Yes, to write to a disk file on local PC, you need to export the game to NWJS.
In this case you can read the ini file without AJAX, simply use NWJS.ReadFile("Path_to_file") expression.
Reading is fairly easy, you can read line by line, and then analyze each line.
Here is a demo:
dropbox.com/s/dxt1v6sv6yo7jv3/ReadIniFile.c3p
Writing to ini file is only possible with NWJS export.
I read this post before going to bed and tried to solve it in my sleep lol :)
In my dream I was using an effect that applies spherical texture to ball sprites. And what do you know - there is such effect!
construct.net/en/make-games/addons/242/glsl-sphere
find() returns an index of the substring. So you need to compare find()>=0
I meant a string of text, which is a list (comma-separated) of enemy types.
Member since 26 May, 2016