Jonny
Well-known member
Here's a way to add a sparkle effect to your title screen like this...
1. Create a User Variable starPos (Set initial value to 255).
2. Open your TimerEndScripts.asm scroll to the end and add the following at userEnd1_action:
(Code improved by CutterCross)
3. At the very end of TimerEndScripts.asm where the tables are definied, add these two...
This is where you will put your own X and Y values for where you want the sparkle object to be.
Plan out so the sparkle object isn't moved on top of another object.
4. Make a monster object (the sparkle) with its animation and set up like this...
5. Place the monster on your start screen.
Enjoy!
1. Create a User Variable starPos (Set initial value to 255).
2. Open your TimerEndScripts.asm scroll to the end and add the following at userEnd1_action:
Code:
userEnd1_action:
INC starPos
LDY starPos
CPY #13
BCC UpdateStarPos
LDY #0
STY starPos
UpdateStarPos:
LDA Xtable,y
STA Object_x_hi,x
LDA Ytable,y
STA Object_y_hi,x
RTS
3. At the very end of TimerEndScripts.asm where the tables are definied, add these two...
Code:
Xtable:
.db 165, 68, 192, 51, 131, 173, 51, 140, 92, 140, 79, 157, 107
Ytable:
.db 139, 131, 40, 71, 132, 164, 71, 60, 123, 131, 67, 76, 68
This is where you will put your own X and Y values for where you want the sparkle object to be.
Plan out so the sparkle object isn't moved on top of another object.
4. Make a monster object (the sparkle) with its animation and set up like this...
5. Place the monster on your start screen.
Enjoy!