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: 136
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.



Author Topic: Spawn z more than 320: is it possible?  (Read 832 times)

0 Members and 1 Guest are viewing this topic.

Offline Pierwolf

  • Sr. Member
  • ****
  • Posts: 348
    • Pierwolf's Magic chamber of abstract theories about relativity of Karma and metempsychosis
Spawn z more than 320: is it possible?
« on: February 08, 2012, 01:25:40 pm »

hi there!

in the LEVELS.txt file, i've a stage set like this:

Quote
z 10 740 160
file   data/levels/MAP.txt

now in the MAP.txt file, I want to spawn chars like this:

Quote
spawn1  10 700
spawn2  30 700
spawn3  50 700
spawn4  70 700

but i've read this in the manual:

Quote
spawn1 {x} {z} {a}
~Optional.
~{x} is relative to the starting edge of the screen. {z} is relative to the stage's minimum z value. {a} is relative to the ground.
~{x} is measured from left for levels with direction right and both and it's measured from right for levels with direction left.
~Although {x} could be any value, its maximum value is 320. Value more than 320 will be deducted by 320. For instance, setting x = 540 will put player in x = 220 instead (220 = 540 - 320).
~{z} could be any value but it can't put player 1 beyond maximum z value.
~Setting {a} > 0 makes player falls down on respawn. Default value for a is 300. NOTE: {a} only effect respawn not when level starts.
~If there's a hole on player's spawn spot, the spawn spot will be shifted up or down to safe place temporary.

in some way this affects even spawn z axis, so that it spawns no more than 320 too.

so there is no way to make my chars spawn > than z 320?

maybe with some scripts?

thanks in advance for the answers! :cheers!:

p.s. my stage is 864x826 px, in case it's useful.

« Last Edit: February 08, 2012, 01:35:05 pm by Pierwolf »
My current project:

Knights & Dragons: The Endless Quest - COMPLETE!

Offline Pierwolf

  • Sr. Member
  • ****
  • Posts: 348
    • Pierwolf's Magic chamber of abstract theories about relativity of Karma and metempsychosis
Re: Spawn z more than 320: is it possible?
« Reply #1 on: February 08, 2012, 01:34:18 pm »
sorry double post  :-[
My current project:

Knights & Dragons: The Endless Quest - COMPLETE!

Offline Count Monte

  • Full Member
  • ***
  • Posts: 136
Re: Spawn z more than 320: is it possible?
« Reply #2 on: February 08, 2012, 01:37:54 pm »
I have some levels in my GI JOE game which have z more than 320.  Here's how I do it:
In LEVELS.txt
z 770 770
file   data/levels/Drome.txt


Then in the level, the spawn is like this:
spawn   Mindbender
coords  650 770 350
at      0

You have to match the 770 same as in LEVELS.txt for the floor.
The 350 is the z (height) for where the entity spawns.  It can be as high or low as you want -- but keep in mind the size of the bg gif is 900 pixels high (your gif has to be big enough).  So the third number controls the height.

Offline Pierwolf

  • Sr. Member
  • ****
  • Posts: 348
    • Pierwolf's Magic chamber of abstract theories about relativity of Karma and metempsychosis
Re: Spawn z more than 320: is it possible?
« Reply #3 on: February 08, 2012, 01:50:08 pm »
I have some levels in my GI JOE game which have z more than 320.  Here's how I do it:
In LEVELS.txt
z 770 770
file   data/levels/Drome.txt


Then in the level, the spawn is like this:
spawn   Mindbender
coords  650 770 350
at      0

You have to match the 770 same as in LEVELS.txt for the floor.
The 350 is the z (height) for where the entity spawns.  It can be as high or low as you want -- but keep in mind the size of the bg gif is 900 pixels high (your gif has to be big enough).  So the third number controls the height.

Thanks counte, but my problem is not with the enemy or object spawn, but with the characters spawn at the beginning of the stage. for example, i have a stage 800 pixel long, and i want to spawn the chars in the beginning at the lower left of the stage, so i put something like 10x and 700z axis. but it seems not to work, and my char always spawn in the left middle of the stage.


i've attached an example:
My current project:

Knights & Dragons: The Endless Quest - COMPLETE!

Offline Count Monte

  • Full Member
  • ***
  • Posts: 136
Re: Spawn z more than 320: is it possible?
« Reply #4 on: February 08, 2012, 01:54:07 pm »
I would still try by doing spawn:

10 740 700 (try experimenting with the third number and see if that changes the height of the player spawn). 

I'm sure script could solve the problem, but I'm not an expert at scripting either.
« Last Edit: February 08, 2012, 01:55:47 pm by Count Monte »

Offline Pierwolf

  • Sr. Member
  • ****
  • Posts: 348
    • Pierwolf's Magic chamber of abstract theories about relativity of Karma and metempsychosis
Re: Spawn z more than 320: is it possible?
« Reply #5 on: February 08, 2012, 01:58:53 pm »
I would still try by doing spawn:

10 740 700 (try experimenting with the third number and see if that changes the height of the player spawn). 

I'm sure script could solve the problem, but I'm not an expert at scripting either.


i've already done this, but in the manual it says that {a} only effect respawn not when level starts; anyway I've tried experimenting but with no results.
 :(
My current project:

Knights & Dragons: The Endless Quest - COMPLETE!

Offline Count Monte

  • Full Member
  • ***
  • Posts: 136
Re: Spawn z more than 320: is it possible?
« Reply #6 on: February 08, 2012, 02:02:47 pm »
I know it's possible, so that's the good news.  Bloodbane again would be the person to ask, because he did use script to create special spawns in our GI JOE mod.  Send him a PM about this.

Offline Bloodbane

  • Hero Member
  • *****
  • Posts: 7113
  • Dark Dragon
Re: Spawn z more than 320: is it possible?
« Reply #7 on: February 08, 2012, 10:40:47 pm »
 Yes, as Count Monte posted above, it is possible to use script to force player to be spawned outside the screen. Since I have posted how to do it some time ago, here's the thread:

http://lavalit.com:8080/index.php/topic,3835.msg53997.html#msg53997

 HTH
OpenBoR Manual

Basic OpenBoR Tutorials

OpenBoR Tricks & Tutorials

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

Offline Pierwolf

  • Sr. Member
  • ****
  • Posts: 348
    • Pierwolf's Magic chamber of abstract theories about relativity of Karma and metempsychosis
Re: Spawn z more than 320: is it possible?
« Reply #8 on: February 09, 2012, 07:27:00 pm »
Yes, as Count Monte posted above, it is possible to use script to force player to be spawned outside the screen. Since I have posted how to do it some time ago, here's the thread:

http://lavalit.com:8080/index.php/topic,3835.msg53997.html#msg53997

 HTH

wonderful! this is exactly what i wanted... now i have another question:

this spawn works for player 1, but i have a 4 players mod; now, i've made 4 of this entities (i called them 1spawn, 2spawn, 3spawn and 4spawn), and i've changed the P1 in P2, P3 and P4 in each of them, but it doesn't work, only player 1 spawns when i want.
any trick?
thanks again bloodbane!
My current project:

Knights & Dragons: The Endless Quest - COMPLETE!

Offline Bloodbane

  • Hero Member
  • *****
  • Posts: 7113
  • Dark Dragon
Re: Spawn z more than 320: is it possible?
« Reply #9 on: February 10, 2012, 09:58:51 pm »
 You have to do little edit to suit each player.

 I'll do the update in that thread instead of here.
OpenBoR Manual

Basic OpenBoR Tutorials

OpenBoR Tricks & Tutorials

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

Offline Pierwolf

  • Sr. Member
  • ****
  • Posts: 348
    • Pierwolf's Magic chamber of abstract theories about relativity of Karma and metempsychosis
Re: Spawn z more than 320: is it possible?
« Reply #10 on: February 11, 2012, 08:25:27 am »
You have to do little edit to suit each player.

 I'll do the update in that thread instead of here.

works wonderfully good now! thank you very much bloodbane!  :cheers!:
My current project:

Knights & Dragons: The Endless Quest - COMPLETE!

 



 0%




SimplePortal 2.3.3 © 2008-2010, SimplePortal