When you set a sprite also use spcol. This command sets a hit box to a sprite, use the help button for more info. To detect a collision use sphitsp, again, help button for more information. If you have more questions, ask away.
Try the ranged sphitsp, the one with three numbers. To make sprites solid make a condition instead of beep.
If b and 1 and move==true....
If sphitsp(0,1,2)>=1 then move=false else move=true
could you please send me a pick of this code in action? you'r a great help man! sorry if i seem dumb at this, i just have no coding experience so I don't have a understanding of complex coding (sprites and sprite actions)
On both sprites, you must first use SPCOL on each one.
SPCOL {sprite management number},TRUE
Use that on each sprite, then use SPHITSP.
IF SPHITSP( {management number of first sprite},{management number if other sprite} )THEN BEEP{number}
That can also be used to set a variable.
DI stands for the direction that the sprite is facing, && is another way to type AND, and the movements are gosubs because that is how I organize my thoughts.
got ya, just curious. also noticed it helps sprites change without interference with other lines. tried diffrent things on your code to kinda figure things out, also your way is good, its easy for a beginer to figure things out