Sprite has an instance variable "char", type string/text.
If the variable is set to a equal a single "space" character (instead of an "a", "b" etc) then the process of saving and reloading will trim the character from the instance variable.
i.e., set it " " and save and reload will make it "" (no apostrophes of course)
Attach a Capx
Description of Capx
This bug came about when I was making my own virtual keyboard.
The spacebar was assigned a " ", i.e., single space character. This works fine until you save and reload and the space character has been removed.
Other keys are assigned other ascii characters.
Steps to Reproduce Bug
- Step 1 The saved capx will not have the "space" char in place so you will need to edit the instance variable.
- Step 2 If you run it the text on the right will indicate the space is found.
- Step 3 Now save restore and rerun and the space is gone,
manually put in the space - all good
save and reload - no space - no good
Operating System and Service Pack
Construct 2 Version ID