Hi.
Would be great if the Mouse press and Keyboard press events could read and use text from string variable or\and scan code from integer variable
Hi.
Would be great if the Mouse press and Keyboard press events could read and use text from string variable or\and scan code from integer variable
They already can do from text variable, Iâm not sure which name of event it was, but Iâm sure it is there, 4ian even wrote about it sometime recently.
In this case it must be a bug (or I miss something again)
In that case if it should work I have uploaded an example.
docs.google.com/file/d/0B1sXiYO ⌠sp=sharing
I try to read the value from the string (text) global variable in all ways I can imagine but nothing works.
If you press w the tank should move forward but it doesnât.
Just noticed that,I canât even get object events to work with variables,like create,delete object.
So,if it a missing feature then,it also would be good if the object events could read and use value of variables too
EDIT: Sound and Music events too
Maybe your installation of Game Develop got somewhat broken? Tried reinstalling it cleanly (first use uninstaller then install again)?
Hi
I donât think that,anything is broken, Iâm using the archived version not the installer.I have downloaded again the archived version,and tried it just now.
I got the same results.I canât use variables to test key press,play music\sound or to create\delete object because it looks like these events canât read and use variables. They can âreadâ only the actual name typed in of key,sound file and object
Or maybe I do wrong something but I donât know what.
Are you sure about that it is possible to use variables?
You canât and ( and will never be able ) to use variables or a string expression for an object parameter ( For performance sake, security, and to avoid developers to misuses Game Develop, making events unreadable⌠).
But there is already an action called âCreate object from its nameâ and âKey is pressed ( Text expression )â which takes a string expression as argument, so you can generate the object name or the name of the key from a variable for example.
Iâm sorry to hear that
But at least that would be great if key press event could read keycodes from an integer variable.
Unfortunately Iâm not sure how to generate âtext expressionâ or âobject nameâ out of variable
I donât even know how âtext expressionâ and âcreate from it nameâ could help me,because if I enter the ânameâ of object,doesnât work,if I enter âwâ as text expression,that works exactly as key press without expression.
All I can do with variables other than test and change it value,is to write the value out of variable in to a file and read the value from file back in to variable.
I would appreciate some help with that how to generate (use) a text expression and object name out of variable because I have no idea.
A simple example would do or short explanation