obsidiannovels
Member
When compiling using latest BETA version, YYC android, I get an error whenever the app tries to destroy a virtual key:
#####################################
FATAL ERROR in
action number 1
of Other Event: Room End
for object objCountit:
virtual_key_delete argument 1 incorrect type (5) expecting a Number (YYGI32)
The code handling virtual keys below:
What's causing this problem? How do I solve it?
Thanks!
#####################################
FATAL ERROR in
action number 1
of Other Event: Room End
for object objCountit:
virtual_key_delete argument 1 incorrect type (5) expecting a Number (YYGI32)
The code handling virtual keys below:
Code:
if (argument0 == 3) {
//room start:
for (i=1;i<=4;i+=1;) {
exe=(i+1)*110;
global.knapptard[i]=virtual_key_add(exe,y,exe+100,y+100,key[i]);
}
}
else if (argument0 == 4) {
//ROOM END
for (ibm=1;ibm<=4;ibm+=1;) {
virtual_key_delete(global.knapptard[ibm]);
}
}
Thanks!