Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,086 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Problem with Sidescroller like R-Type #433586
12/03/13 10:01
12/03/13 10:01
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline OP
User
Schmerzmittel  Offline OP
User

Joined: Aug 2005
Posts: 512
Bayern
Hello everyone,

i have a strange problem and i don't know what to do.
If you look on YouTube the videos of R-Type longplay, than you see, that the Level moves from right to left. Sometimes it move up or down. The Player can move his ship in every direction and can fire.

The ship itself is not the problem. I have the problem, that i cant get to work, that the level moves and the player can move his ship like that R-Type ship.

I've tryed to move the levelentitys, but if you collide with it, then it stops and the parts that don't get hit by your ship moves without the other parts (modular levelbuild).
Otherwise, if i move the ship with a constant value on the x axis, then the collissiondetection don't work properly.

Can someone give me a hint how i can realise that movement of level (models) and the camera and the ship.

Greetings
Schmerzmittel


A7 Com V7.80
Re: Problem with Sidescroller like R-Type [Re: Schmerzmittel] #433587
12/03/13 10:23
12/03/13 10:23
Joined: Dec 2003
Posts: 1,225
germany
gri Offline
Serious User
gri  Offline
Serious User

Joined: Dec 2003
Posts: 1,225
germany
hi,

you move the whole level ?

why not moving the camera with an threadmilling system. So your collision detection would work independend how crazy the camview is shacking.


"Make a great game or kill it early" (Bruce Shelley, Ensemble Studios)
Re: Problem with Sidescroller like R-Type [Re: gri] #433589
12/03/13 10:49
12/03/13 10:49
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline OP
User
Schmerzmittel  Offline OP
User

Joined: Aug 2005
Posts: 512
Bayern
What's a threadmilling system?

I have tryed to move the camera only with the x axis. Or do you mean the camera should move along a curve(Path)?

When the camera is moving, how can i get to work, that the ship moving with the camera, but can fly in every direction without loss of speed? (f.e. the camera moves to the right, but when the ship moves to the left, it get very slow) The the next problem is, i can't set the "fly area" to the screen size.

I realize that i have nothing done with gamestudio for a long time. How can i forgot everything? It's sad but true.


A7 Com V7.80
Re: Problem with Sidescroller like R-Type [Re: Schmerzmittel] #433590
12/03/13 10:54
12/03/13 10:54
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
you can set the camera to simply follow the ship movement in x or xy or whatever direction(s).


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Problem with Sidescroller like R-Type [Re: sivan] #433600
12/03/13 12:19
12/03/13 12:19
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline OP
User
Schmerzmittel  Offline OP
User

Joined: Aug 2005
Posts: 512
Bayern
I know. It's hard to explain in english... crazy

If the camera follows the ship or the ship the camera, then the ship is only in the middle of the screen. But it should be possible to fly to the right, left, up, and down side of the screen. The camera should follow the level (or path or whatever).

Look here: http://www.youtube.com/watch?v=9Br8nOkLkHU

In that way i will make it. But after 5 hours of trial and error, i don't get it.

Today i get an idea. I'll try it the next days. Hope it works. How can such a old thing be so hard?


A7 Com V7.80
Re: Problem with Sidescroller like R-Type [Re: Schmerzmittel] #433602
12/03/13 12:39
12/03/13 12:39
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
the camera has a minimum speed pointing to the right, probably x, and it is set as a min x speed of the player model. the player model can move within a determined window size freely by adding/substracting speed values due to user input. nothing magic laugh


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Problem with Sidescroller like R-Type [Re: sivan] #433611
12/03/13 13:57
12/03/13 13:57
Joined: Dec 2003
Posts: 1,225
germany
gri Offline
Serious User
gri  Offline
Serious User

Joined: Dec 2003
Posts: 1,225
germany

ups sorry.....Treadmill whithout "h".

You could find some info and example in AUM online

search for "Treadmill".


"Make a great game or kill it early" (Bruce Shelley, Ensemble Studios)
Re: Problem with Sidescroller like R-Type [Re: gri] #433616
12/03/13 14:41
12/03/13 14:41
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
Quote:
How can such a old thing be so hard?
Because nobody moves the whole level, thats why its so hard ^^

I would use the way pointed out by sivan's last post.


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Problem with Sidescroller like R-Type [Re: rayp] #433622
12/03/13 15:31
12/03/13 15:31
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline OP
User
Schmerzmittel  Offline OP
User

Joined: Aug 2005
Posts: 512
Bayern
Thats right. I thinked about it. And now i have some ideas. It's not that hard. Most of my time get hard things work and easy ones not.

So thanks to all. I'll try it out and hope it works.


A7 Com V7.80
Re: Problem with Sidescroller like R-Type [Re: Schmerzmittel] #433626
12/03/13 15:48
12/03/13 15:48
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
Quote:
Most of my time get hard things work and easy ones not
This is true yes, same for me ^^

[ g e r m a n ]
Man darf nicht den Fehler machen und sagen "Ich mache mal SCHNELL..." dann dauerts immer ewig grin
[/ g e r m a n ]


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1