WauloK
Wacky Amoebatron
 
Blue Bilby MPAGD dev
Posts: 41
|
Post by WauloK on Apr 2, 2021 3:05:08 GMT
Is there any easy way to keep two sprites together? Eg. I want to define a player character as two sprites, one on top of the other. But using events one is always a pixel or two out of sync. I set A and B to the values of the main sprite's X and Y then change in SPRITE1 event.
|
|
|
Post by jltursan on Apr 5, 2021 8:03:54 GMT
If I'm not wrong you need to use all even or odd sprites if you want to avoid the sync problems. The even/odd position depends of the SPRITEPOSITION order; so probably, the first and third SPRITEPOSITIONS will move together.
|
|
|
Post by ramon on Jan 23, 2023 14:04:10 GMT
Consulta el artículo espero que pueda ser útil pacmanzxspectrum.blogspot.com/2020/12/big-man.html?m=1Yo usé este código para dibujar 4 Sprites: IF SCREEN > 0 ; si estamos en "START" o "INTERMISSION" LET DIRECTION = RIGHT ; gira para perseguir a los fantasmas LET IMAGE = 14 ; transformación en Big-man LET FRAME = 0 SPAWN 6 17 ; instancia pieza "Big-man" SPAWNED ADD 15 TO X ; posición abajo derecha LET FRAME = 0 ; asegura fotograma 0 LET DIRECTION = RIGHT ENDSPRITE SPAWN 6 15 ; instancia pieza "Big-man" SPAWNED SUBTRACT 16 TO Y ; posición arriba SUBTRACT 1 TO X LET FRAME = 0 LET DIRECTION = RIGHT ENDSPRITE SPAWN 6 16 ; instancia pieza "Big-man" SPAWNED ADD 15 TO X ; posición arriba derecha SUBTRACT 16 TO Y LET FRAME = 0 LET DIRECTION = RIGHT ENDSPRITE ENDIF ENDIF
|
|