Yes I'm using the last version Gorgonzola. I noticed that you could change the sizeare you using the latest version of the engine?
you can change the dimensions of any sprite set freely.
of the sprite set but it don't feel the need to use this function (yet) but that may come as I also work on cutscene with slice collection.
You also said:
That's a good idea but I'll change it a bit palette 29 is by default and paletteThe sprite set or frame numbers can match the digits they represent.
Example: digit sprites for 0 to 9 are in sprite frames 0 to 9
If you have sprite frame 7, you have the digit 7
13 put the figure in grey (selection) So set sprite palette is what will fit my need most
Code: Select all
card machine handling:=look up slice (sli: cm7 key)
set sprite palette (card machine handling, 13) #key 7 is selected
My weapon sprite (used as digits) works this way
1- weapon enemy sprite set 27
2- weapon enemy sprite set 28
3- weapon enemy sprite set 29
4- weapon enemy sprite set 30
5- weapon enemy sprite set 31
6- weapon enemy sprite set 32
7- weapon enemy sprite set 33
8- weapon enemy sprite set 34
9- weapon enemy sprite set 35
10- weapon enemy sprite set 36
Letter O - weapon ennemy sprite set 24
Letter K- weapon ennemy sprite set 31
So if I take back my keypressed script. If I'm on number 1 I can
1- go down and select number 4
2- go right and select number 2
3- go up and select number 0
4- go left and select number 3
Code: Select all
#------------------------------------------------------------------------------------------
#script for keyboard customisation
plotscript, mykeypressedscript, begin
#key implementation for card machine. Arrows used for moving on the numpad
#and d for validation of a figure and then the whole 8 digit card number
if (check tag (tag: card machine is used)==on) then, begin
if(keypress(key:up)) then, begin
card machine handling:=look up slice (sli: cm0 key)
set sprite palette (card machine handling, 13) #key 0 is selected
end #end for the if
if(keypress(key:down)) then, begin
card machine handling:=look up slice (sli: cm4 key)
set sprite palette (card machine handling, 13) #key 4 is selected
end #end for the if
if(keypress(key:left)) then, begin
card machine handling:=look up slice (sli: cm3 key)
set sprite palette (card machine handling, 13) #key 3 is selected
end #end for the if
if(keypress(key:right)) then, begin
card machine handling:=look up slice (sli: cm2 key)
set sprite palette (card machine handling, 13) #key 2 is selected
end #end for if
card machine handling:=look up slice (sli: cm1 key)
set sprite palette (card machine handling, 12) #key 1 is unselected and get back to normal
if(keypress(key:d)) then, begin
#d is used for validation process 1- first valid chosen digit
#2- if the ok key is pressed with d then the whole card number verification process begin
end #end for the if
end #end for the if check tag
end #end for the script
#--------------------------------------------------
Code: Select all
for(i,0,9,1)do(
IF(currently selected==i)THEN(load sprite set(i))
)
Code: Select all
for(i,0,9,1)do(
if(selected(slice child(target,i))then(return(i))
)
# h