Welcome, Guest. Please login or register.

What openbor you prefer: Double dragon,battletoads or final fight !? by lirexpatrio
[December 07, 2012, 07:15:27 pm]


what are your favorite games OpenBOR?! by lirexpatrio
[December 07, 2012, 07:09:46 pm]


Post Some Awesome Videos by maxman
[December 07, 2012, 05:51:39 pm]


Can @cmd playmusic "aaaa" 1 also increse music sound ? by BeasTie
[December 07, 2012, 05:24:38 pm]


Streets of Rage: Silent Storm by mtrain
[December 07, 2012, 03:45:05 pm]


Site will be down for maintenance on 12/8/2012 thru 12/10/2012 by Damon Caskey
[December 07, 2012, 07:42:42 am]


Cancelled SOR 3d Remake by riccochet
[December 07, 2012, 03:58:33 am]


Dungeon Fighter: B.O.R. by msmalik681
[December 07, 2012, 03:24:27 am]


[TUTORIAL] How to create 4 Games of OpenBOR in 1 CD (650 MB) by magggas
[December 06, 2012, 09:46:25 pm]


custknife by Bloodbane
[December 06, 2012, 09:34:09 pm]


blockfx help by B.Kardi
[December 06, 2012, 04:09:14 pm]


street of age 4 hd by corradlo
[December 06, 2012, 01:41:36 pm]


ClaFan - Classic Fantasy ver 1.17 by soniczxblade
[December 06, 2012, 05:01:20 am]


Bug Archive by Bloodbane
[December 06, 2012, 02:00:44 am]


"Bio-Doom" and "Gears of Doom" by BulletBob
[December 05, 2012, 10:07:21 pm]


Contra Locked 'N' Loaded v2 by Bloodbane
[December 05, 2012, 09:39:43 pm]


Downloadable OpenBoR Manual by BeasTie
[December 05, 2012, 08:31:24 pm]


Having trouble testing changes by B.Kardi
[December 05, 2012, 03:05:53 pm]


DragonBall Absalon by msmalik681
[December 05, 2012, 02:52:13 pm]


[Hi-Res] Swamp by Vibrant
[December 05, 2012, 10:47:14 am]


  • Dot Guests: 131
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.



Author Topic: Is it possible to set the time for more than 99sec  (Read 396 times)

0 Members and 1 Guest are viewing this topic.

Offline jonsilva

  • Full Member
  • ***
  • Posts: 116
Is it possible to set the time for more than 99sec
« on: December 01, 2012, 05:13:59 am »
Hello
I have a level that is not a bonus stage
Its a rush level where you fight one guy, and i wanted to the set the time for 5min
And make the level ending by adding livespawn of 499 to the enemy

Is it possible to add more than 99sec to the time clock
ive set level like this:
settime         200
noreset         1

Offline utunnels

  • Developer
  • Hero Member
  • *****
  • Posts: 2713
Re: Is it possible to set the time for more than 99sec
« Reply #1 on: December 01, 2012, 05:33:05 am »
Currently you can't.

Though there are some script solutions.


For example, make a countdown entity.


anim spawn
    delay 30000
     frame data/chars/misc/empty.gif
     @cmd jumptobranch "" 1
     frame data/chars/misc/empty.gif
   

Offline jonsilva

  • Full Member
  • ***
  • Posts: 116
Re: Is it possible to set the time for more than 99sec
« Reply #2 on: December 01, 2012, 08:58:20 am »
thanks for the reply

but the level needs to show the time count on the screen
ill try to make with a few drop time items so the player doesnt die when the time runs out

i have another thing that i cant get it to work...
i cant get the player to use the anim respawn
the player always spawns with spawn anim


iam using a weapon in the current level
the level is set to setweap     4


both weapon and player txt have have this animation

playerweapon4.txt
Code: [Select]
anim respawn
loop 0
delay 7
offset 121 201
bbox 0 0 0 0


anim spawn
loop 0
delay 7
offset 121 201
bbox 0 0 0 0




player.txt
Code: [Select]
anim respawn
loop 0
delay 8
offset 121 201
bbox 0 0 0 0


anim spawn
loop 0
delay 8
offset 121 201
bbox 0 0 0 0


do you know why the respaw anim is not working ?

Offline Bloodbane

  • Hero Member
  • *****
  • Posts: 7113
  • Dark Dragon
Re: Is it possible to set the time for more than 99sec
« Reply #3 on: December 01, 2012, 10:06:56 pm »
Quote
but the level needs to show the time count on the screen
ill try to make with a few drop time items so the player doesnt die when the time runs out

 I think you can do what utunnels suggests and add custom timer to replace default timer. Of course, the latter must be disabled and set to 0 1st.
OpenBoR Manual

Basic OpenBoR Tutorials

OpenBoR Tricks & Tutorials

"The more often enemies attack, the more open they are to counter attacks"

Offline jonsilva

  • Full Member
  • ***
  • Posts: 116
Re: Is it possible to set the time for more than 99sec
« Reply #4 on: December 02, 2012, 06:01:56 am »
but i cant see how it can work

i wanted the time numbers to show on screen
utunnels way looks like the same than adding a livespawn of 30000 to the boss in the level
(this is a level where you only fight one guy and it ends when the time runs out)

i dont know how to create a custom timer of 300 in BOR
In C i think its something like:
for( int i = 0; i < 300; i++ )

... I cant rebember very well... i used to do this stuff years ago
« Last Edit: December 02, 2012, 06:08:02 am by jonsilva »

Offline Bloodbane

  • Hero Member
  • *****
  • Posts: 7113
  • Dark Dragon
Re: Is it possible to set the time for more than 99sec
« Reply #5 on: December 02, 2012, 10:06:13 pm »
 Well, since you have GI Joe mod, you can see how I made custom timer in missile room. You might need to change used font and change the distance between each number.
OpenBoR Manual

Basic OpenBoR Tutorials

OpenBoR Tricks & Tutorials

"The more often enemies attack, the more open they are to counter attacks"

Offline jonsilva

  • Full Member
  • ***
  • Posts: 116
Re: Is it possible to set the time for more than 99sec
« Reply #6 on: December 03, 2012, 06:18:21 am »
thanks
this timer is great !!!
ive added another number (timer5) with a delay of 10000 to make it like this "299.9"
and lifespawn of 299 to all timers

theres no need to change the font it looks good like this

Offline utunnels

  • Developer
  • Hero Member
  • *****
  • Posts: 2713
Re: Is it possible to set the time for more than 99sec
« Reply #7 on: December 03, 2012, 06:58:09 am »
Quote
299.9

Perhaps something like

4:59


is better.

Offline jonsilva

  • Full Member
  • ***
  • Posts: 116
Re: Is it possible to set the time for more than 99sec
« Reply #8 on: December 03, 2012, 02:43:24 pm »
theres no need its fine like this...

 



 0%




mighty
SimplePortal 2.3.3 © 2008-2010, SimplePortal