|
Post by kas29 on Mar 8, 2013 17:06:46 GMT
Hi, everybody! such situation... the character takes a subject on a certain screen, and is admissible then in the course of game all lives loses. game begins anew. from the first screen. but the subject remains at it... (the head I broke already) actually question: maybe who faced. and whether it is possible such. How to make so that at loss of lives, a subject which it had, disappeared and appeared on that screen where the character took it? ? ? let's allow if to start in the editor game since the beginning (X), everything is normal. and then in game at life loss, game begins (on my idea) with the first screen, always with a subject. if to bowl off in the editor, and again to start that everything ok. ps. in my game as though ring. if lives come to an end, everything begins with the first screen. and here with a subject a problem.
|
|
|
Post by Jonathan Cauldwell on Mar 8, 2013 18:02:44 GMT
The objects should be reset to their starting positions at the start of each game. If they don't then there's obviously a bug.
I'll take a look at the code.
|
|
|
Post by kas29 on Mar 8, 2013 18:14:56 GMT
|
|
|
Post by kas29 on Mar 9, 2013 6:18:17 GMT
Is it possible to reset the objects on the start position during the game?
|
|
|
Post by Jonathan Cauldwell on Mar 10, 2013 18:53:52 GMT
Thanks for the video, I now see what it is you are trying to do. No wonder I couldn't find a bug, the way you're using it is quite clever. You're effectively looping from within the same game.
There should be a way to initialise the objects in-game, but it is tricky and dangerous. You need to add the following 3 lines to call the routine to re-initialise objects. Save your work before you try this!
ASM 205 ASM 42 ASM 127
Be very careful, if you get this wrong your game might crash! Also, DO NOT do this in a SPRITE TYPE event.
|
|
|
Post by kas29 on Mar 11, 2013 4:27:45 GMT
Sorry for my strange explanation.. Here's how.. and I don't even know about that.. Thank you Jonathan for the help!!!
|
|
|
Post by kas29 on Mar 11, 2013 4:34:20 GMT
|
|
|
Post by thesentinel on Mar 13, 2013 20:39:23 GMT
Hey kas29, very nice looking game! Congratulations. I hope everything goes well with it (and that I can aspire to half as much)
I'm looking forward to the final product.
|
|
|
Post by kas29 on Oct 7, 2020 16:09:54 GMT
Thanks for the video, I now see what it is you are trying to do. No wonder I couldn't find a bug, the way you're using it is quite clever. You're effectively looping from within the same game. There should be a way to initialise the objects in-game, but it is tricky and dangerous. You need to add the following 3 lines to call the routine to re-initialise objects. Save your work before you try this! ASM 205 ASM 42 ASM 127
Be very careful, if you get this wrong your game might crash! Also, DO NOT do this in a SPRITE TYPE event. Hello Jonathan! Tell me, is it possible to do this in versions 4.7 and 4.8?
|
|
|
Post by Jonathan Cauldwell on Oct 8, 2020 14:57:08 GMT
Try using this:
ASM 205 ASM 255 ASM 126
For anyone wishing to do this in MPAGD, create a user routine that looks like this:
jp iniob
Then select your user routine in the editor. Then you just need to use the command USER to reset the objects during the game.
|
|
|
Post by kas29 on Oct 8, 2020 18:14:30 GMT
Thank You Jonathan!
|
|