Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, SBGuy, Petra), 801 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
transition model on the screen #329041
06/17/10 03:49
06/17/10 03:49
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
How can I make model transit from one end of the screen to an other? Like on this picture:

I've asked for this before, but didn't get any good ideas... I don't want to create same model with same size and so on... I need one same model to move from one side of the screen to an other... There are allot of old games doing transits, but without copying models, panels etc. I think the same way can be created portals... You can see the same effect here, in game VVVVVV. Thank you.

Last edited by 3run; 06/17/10 03:53.

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: transition model on the screen [Re: 3run] #329049
06/17/10 09:10
06/17/10 09:10
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
you can try it with vec_for_screen / vec_to_screen
check, if the model is moving out at top, set the position to the bottom.
the same with left and right
i think you don't need two models because the player will expect the model at the other side an will not recognize that the model is switched in one frame.


Visit my site: www.masterq32.de
Re: transition model on the screen [Re: MasterQ32] #329099
06/17/10 15:42
06/17/10 15:42
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
But will model transit smoothly? For example, when only half of the model is out of the screen, then only half of it must appear on the other side, like on the picture made by me.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: transition model on the screen [Re: 3run] #329100
06/17/10 16:05
06/17/10 16:05
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
For that you NEED 2 models.

Re: transition model on the screen [Re: Rei_Ayanami] #329101
06/17/10 16:10
06/17/10 16:10
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Damn! What you mean two models?! Old good snake game, do they use two snake models(or if snake goes few time between screens, how many models will I need then)?


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: transition model on the screen [Re: 3run] #329167
06/18/10 08:23
06/18/10 08:23
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
you can try it with a shader, i believe there is some shader that clips meshes...
maybe that can be adjusted to your use. laugh


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: transition model on the screen [Re: Helghast] #329179
06/18/10 10:36
06/18/10 10:36
Joined: Mar 2009
Posts: 42
Dominican Republic
keilyn3d Offline
Newbie
keilyn3d  Offline
Newbie

Joined: Mar 2009
Posts: 42
Dominican Republic
I made an image to explain you an idea. (the ball in the left is the real)
(image in real size)
you need to make a function that when the ball is in the right the camera1 make invisible and the camera2 visible and vice versa.

when the ball is completely outside, change de pos of the ball to the other side and make invisible the view that is over the ball.

tell me if you understand me, I have the idea clear in my mind.

Last edited by keilyn3d; 06/18/10 10:40.
Re: transition model on the screen [Re: keilyn3d] #329188
06/18/10 11:43
06/18/10 11:43
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Use bmap_blit for that : http://www.conitec.net/beta/bmap_blit.htm
Blit the left portion of the bmap to the right edge of the panel and blit the rest portion to the left edge of the same panel.

Last edited by bart_the_13th; 06/18/10 11:44.
Re: transition model on the screen [Re: bart_the_13th] #329189
06/18/10 11:44
06/18/10 11:44
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
bmap_blit don`t work with models wink

Re: transition model on the screen [Re: Widi] #329191
06/18/10 11:54
06/18/10 11:54
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
grin He gave 2D example game... Cant think of any more way to accomplish that without using copied model though...

Page 1 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

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