My computer has kicked the bucket while I was chewing over this problem last night so there is nothing I can do but for piece of mind has anyone had problems with the player not reappearing when killed off the initial game starting screen?.I have created four screens to my project but if I am killed on an adjoining screen I get the explosion lives are deducted and a new life does not appear.Dying on the original starting screen is fine .This may or may not be related, I have noticed I appear to be unable to delete the player sprite from the initial screen 00 so I have to play to get to screens I am designing,if I press 'D' to delete sprite on the sprite position screen it just refreshes and nothing happens.
I see thank you Jonathan,my game is free roam not linear one direction so making your way back through an area entering from the right ,getting killed but respawning on the left of the screen is going to be weird.I have time to think about it anyway while my computer is being repaired,in the meantime I will continue making game layout on graph paper and noting ideas as i get them lol. Edit- Just having one life and energy bar would solve the respawning at wrong side issue of course but I prefer lives
Follow above Jon's instructions, then in Sprite#0 event, just before KILLing:
LET O = X LET P = Y
and then in INITIALISE SPRITE event:
IF TYPE 0 LET X = O LET Y = P ENDIF
In order to make it work, you should set O/P for the starting screen, so in GAME INITIALISATION set:
LET O = 80 LET P = 120 (example coordinates)
This way player will respawn in the same death point. That works in Land of Mire Mare, even if i had to add a routine to bring few seconds of invulnerability in order to avoid continuous deaths at certain screen points ;-)
I may make the character flash or something to signal invincibility.
If you've seen my Land of Mire Mare (i don't consider it a masterpiece, but at least an AGD tips resource), you could use the same solution, as seen in many old arcade games - RND colour while invulnerability lasts ;-)
You say LOMM is a resource but is it possible to load it up in AGD because I seem unable lol,or was it just a figure of speech.My next problem is colour related because as in the instructions it says you need to use sprite ink in sprite events to prevent sprites leaving a trail of transparent coloured tiles as they move,this is my problem at the moment as I make the player flash but he leaves the trail of tiles ,so in the player 0 code I have inserted an instruction to colour the sprite 71 but I am getting a weird result where I prevent the trail of flashing blocks behind the player but when entering and leaving screens if you push towards a wall you turn it white (currently the players colour).I need to see example code.
Okay I have the death sequence and flashing respawn,If the player respawns and moves into an enemie he does not die as expected but if the player reappears on top of a baddie during screen restart the player dies even with flashing and invincible instruction so I have something wrong in my loops somewhere.