can you share the capx where you are, it helps to debug
thats the variable i made on the playerobject to save the uid(unique number of that object) of lineofsight object
"nr" its just a short for "number" but you could name it anyway you like
Develop games in your browser. Powerful, performant & highly capable.
you can just position the ship at the the top, where you want it to stop,
check the y position, and then make an event, ship.y < 50 set ship.y to 50
as the ship y position gets lower then 50 (at the top) it will hold on 50
Scroller.y is probably just a point of reference to get a .y coordinate, a sprite that is invisible, its not really a system function
by deleting these events you should be freely reach the top, to go further the "window size" should be increased, and there should be an event or a behavior "scrollto" on the ship so that the screen follows the ship object
hope this helps a bit
its pretty easy
example
—
the problem here is that the collision happens on lineofsight object
so construct has no way of knowing wich player to pick
by saving uid of lineofsight in playerobject on creation
then compare if uid of lineofsight = player variable uid, it picks the right player
hope this helps
if you put the enemies into a family you could save the uid of the family
the collision would pick the right enemy a,b or c
nimos100
did you tried beta 110.2, there were some trouble with 110
on collision > set a variable to enemy.uid
attack animation is finished > pick enemy by uid "variable" > destroy
set rotationm to random(360) you forgot the random
its basicly a swith with a timer
i made an example
no problem, glad i could help
Member since 24 Jul, 2011
Progress report, sneak peak, and thoughts in dev-progress