level wait nowait problem

jonsilva

New member
hello...
i have a level that scrolls left and right (direction both)

iam trying to stop the level from scrolling for a few seconds with
the wait comand... and then give the player free level scroll again...

but only the frist wait seems to work !
after that i cant reset the wait anymore and the level scroll stays stoped until the last enemy arrives...
i wanted to stop the scrolling for about 2/3 times during the level...

ive tried wait at -1 / at 0 / at 1 / at 2 / none of it seem to work
if iam at coords x900 the the 1st wait works... but then i cant reset it
and it stays there forever...

(the level size is x1200 z200 )

level enemy spawn txt
#-----wall--------------------
wall    -600 300  0 0 2200 2200 10 5000
#----------------------------


#----------start------------------

group 1 1
at    0

spawn  mrkarate3
health  95500
coords  350 370
at      0

spawn  mkst1
coords  10 500 400
at      0

spawn  ghost3
coords  1350 240
at      0

spawn  ghost3
coords  1350 240
at      0

#-----wait--john-arrives-----------

group 1 1
at    0
wait
at      0

spawn  ghost1
coords  1350 240
at      0

spawn  jonybyo1
coords  -260 270
at      0

spawn  ghost1
coords  1350 240
at      0

#--------avoid-john-time--wait-reset----------

group 1 1
at    1

spawn  ghost1
coords  1350 240
at      1

spawn  ghost1
coords  1350 240
at      1


#-----wait---alien-appears-/-john-leaves---------------

group 1 1
at    2
wait
at      2


spawn  ghost1
coords  1350 240
at      2

spawn  ufd62
health  150
coords  400 450
at      2

spawn  ghost1
coords  1350 240
at      2

#------------alien-destroid---wait-reset------------

group 1 1
at    3

spawn  ghost1
coords  1350 240
at      3

#------------------------------

group 1 1
at    1500

spawn  ghosttest
coords  50 240
at      1500
 
I don't understand why would you want to stop scrolling temporarily. OTOH I don't understand how these level spawns work to achieve that.

Anyways, if you only want to stop scrolling, you can use script to stop camera. You can do this with entity.

Before I give you example entity for that, how long you want camera to stop scrolling?
 
its a vehicle road level...
direction      both
bgspeed 30
setweap 1


this 2 entities (  jonybyo1 ) and ( ufd62 )
spawn (text noskip) entities when they frist appear that talk to the player.

if the player is moving foward/back (without the "wait at") theres the risk he only sees the speaking text entity... Cause the (  jonybyo1 ) and ( ufd62 ) will get offscreen out of camera range...

its like seeing a message that pops up from a character and been unable to see to see the character thats giving the message...

you can use script to stop camera. You can do this with entity.
Before I give you example entity for that, how long you want camera to stop scrolling?
iam using ghost1's that have a lifespawn of 5 to control the stoping scroll camera...
but if the stoping scroll could be put at the start/end spawn animations of (  jonybyo1 ) and ( ufd62 ) it would work even better...

 
Is this vehicle road a pseudo travel level?
FYI pseudo travel level is level which uses autoscrolling backgrounds to give illusion of moving.

You know, seems like your real problem is how to make dialogue entities to stay onscreen instead of how to prevent camera from scrolling.

Wait a second, if you already set noskip subtype, then why would you need to stop scrolling? noskip will freeze everything
 
Is this vehicle road a pseudo travel level?
yes youre on a bike fighting enemies

Wait a second, if you already set noskip subtype, then why would you need to stop scrolling?
its because the entities ( jonybyo1 ) and ( ufd62 ) are enemies...
theyre spawn animations use ((spawnframe)) to show the noskip text entity...

if the player doesnt stand still when ( jonybyo1 ) and ( ufd62 ) appear they will only see the text they spawn // and wont see the enemie entitie where the text is coming from...

examp.jpg






 
Okay, fair enough.
Since the system works like this, you don't need seperate entity to stop camera, you can set the script in enemy's animation then.

This is the function to control scrolling speed:
Code:
    changelevelproperty("scrollspeed", 0);

You can set this say in enemy's SPAWN animation like this:

Code:
anim spawn
@script
  if(frame==1){ // at 2nd frame for example
    changelevelproperty("scrollspeed", 0);
  }
  if(frame==6){ // at 7th frame for example
    changelevelproperty("scrollspeed", 2);
  }
@end_script
...

When 2nd frame is played, scrolling speed is set to 0 aka, camera is stopped.
Scrolling speed is set to normal (2) at 7th frame aka camera is allowed to move

You could change frame==1 and frame==6 to suit your need.

HTH
 
HHhoo...
i just found out that the scrollspeed also stops the camera from moving up and down...
if the player is at the bottom of the level he still wont see the enemy
and wont be allowed to move up...

ive been searching the scripts tutorials and couldnt find a word
for levelscroll in x...

is there a way to see what the engine is doing when he plays the "wait" command ? 
 
Dunno, never heard of such thing.

Anyways, if you really want to force players to see the enemy, you could also force camera to be in certain position with this function:
Code:
    changeopenborvariant("ypos", Value);

Setting this will instantly put camera in defined Value.

I can't give you exact value so you might need to trial n error for this.

Declare this together with above script like this:

if(frame==1){ // at 2nd frame for example
    changelevelproperty("scrollspeed", 0);
    changeopenborvariant("ypos", Value);
  }
 
it doesnt seem to work...
ive already tried this command yesterday while i was searching trow the scripts options...
what happens is the player sudden appears at ypos then returns immediately to the same position where he was before it all happens very fast at a delay of 1 i think...the camera movement doesnt seem to follow the ypos...

 
Back
Top Bottom