Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, alibaba), 1,426 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: vertical mirror help.... [Re: Blink] #337894
08/14/10 10:16
08/14/10 10:16
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
Blink, take a look at unanswered questions on the last aum 94, there is an example of how to make an object to be a mirror.


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: vertical mirror help.... [Re: painkiller] #337959
08/14/10 19:57
08/14/10 19:57
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
its probably in lite-c, so i may have trouble. thanks for the tip.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: vertical mirror help.... [Re: Blink] #337980
08/14/10 23:18
08/14/10 23:18
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
ok... i got it to work somewhat, but i am getting an invalid arguement error in
mirror_startup(), in this line: mirror_view.bmap = bmap_for_entity(mirrorsprite, 0);

here's the code:

Code:
entity* mirrorsprite;

 

VIEW* mirror_view;

 

action mirror_sprite() // attach this action to a sprite / model that will be used for the mirror

{

       mirrorsprite = my;        

      

}

 

function mirror_startup()

{
       
       while (!mirror_sprite) 
       {
       	wait (1);
       }

       mirror_view = view_create(10); // set the layer value for the new view to 10

       wait (2);

       mirror_view.size_x = 128;

       mirror_view.size_y = 128; // the mirror sprite has 128x128 pixels

       mirror_view.bmap = bmap_for_entity(mirrorsprite, 0); 
       mirror_view.visible = on; 

       vec_set(mirror_view.x, vector(1000, 500, 100)); // set the position of the mirror "eye"

       vec_set(mirror_view.pan, vector(0, -10, 0)); // set the angles of the mirror "eye"

}



i am using A6.60 pro btw.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: vertical mirror help.... [Re: Blink] #338375
08/17/10 18:49
08/17/10 18:49
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
ok...so no one with any ideas? at least how i can get rid of the error? i got it to work, but the bitmap attaches to the window in the upper left corner of my screen, and the actual bitmap is on the level., when the player faces it, the image is shown, but thats not how it should be. so,...anyone?


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
invalid arguement error ????? [Re: Blink] #338433
08/18/10 06:42
08/18/10 06:42
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
ok, let's try this approach. does anyone know how to fix the error. the mirror works, it just not where its supposed to be, and i get the invalid arguement error. anyone????


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: invalid arguement error ????? [Re: Blink] #338550
08/19/10 00:05
08/19/10 00:05
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Can you post a couple of pics and your new code so we can see what might be the problem.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: invalid arguement error ????? [Re: Nidhogg] #338555
08/19/10 03:13
08/19/10 03:13
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
its the code i posted above. Thanks for responding, Nidhogg.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: invalid arguement error ????? [Re: Blink] #338556
08/19/10 03:24
08/19/10 03:24
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
see it? in the upper left top corner? it should be on the sprite i am facing.


By beatsncredible at 2010-08-18


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: invalid arguement error ????? [Re: Blink] #338557
08/19/10 03:25
08/19/10 03:25
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
it placed like a panel unusually.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: invalid arguement error ????? [Re: Blink] #338584
08/19/10 11:37
08/19/10 11:37
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Hi Blink, I think you need to create the entity mirrorsprite first,
From the manual "I hope it suits A6" you = ent_create("flash.pcx", temp, flash_action).
Have a look in the manual for this under Engine Functions/Entity Functions for more info.

Then have a look at the bmap_for_entity function. I am sure you will need a wait(1) right after you create the entity to give the engine time for creation.
You may also need the proc_late as well.
If you can give me a day or two I might still have my old A6 verticle mirror code lying around.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Page 2 of 3 1 2 3

Moderated by  Blink, Hummel, Superku 

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