IchicoreGames
Member
Hey guys! This is my first post! I have got a GMS licence few weeks ago because i think is easy and nice to develop retro games, so i love it! But i'm having issues recently! I have read ALL my codes and everything is fine and i suspected about layers missing on load randomly! Look, i got room calls level_1,level_2 and so on for my mission worlds, OK! But my main characters starts to float up and this is beacuse thhe gravity script, and it is ok because when every thing is OK my character stands on ground perfectly! But when bug happens my character starts float up as i mentioned!
Well, i wrote and script on create event of my camera follow object to check if layers were created, in this case, my solid tiles and platform tiles layers, i wrote something like this in pseudocoding
layersfound = false
while(!layersfound){
I hope you can understand my english so badly! xD hehehehe
Have a great development boys!!!
Well, i wrote and script on create event of my camera follow object to check if layers were created, in this case, my solid tiles and platform tiles layers, i wrote something like this in pseudocoding
layersfound = false
while(!layersfound){
if(layer1 && layer2){
//this push my program stacks here if layers i need never were created! when bug has not happened this //just find the layers and go out this while loop and game keep working fine, but when bug happens, the //script stacks in this loop confirming that i was right, layers are missing on room load!!
}layersfound=true;
}//this push my program stacks here if layers i need never were created! when bug has not happened this //just find the layers and go out this while loop and game keep working fine, but when bug happens, the //script stacks in this loop confirming that i was right, layers are missing on room load!!
I hope you can understand my english so badly! xD hehehehe
Have a great development boys!!!