Gamestudio Links
Zorro Links
Newest Posts
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
Zorro version 3.0 prerelease!
by TipmyPip. 02/24/26 17:09
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (Martin_HH, TipmyPip, AndrewAMD, Grant, USER0328), 5,287 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Moving Water #282314
07/31/09 09:04
07/31/09 09:04
Joined: Apr 2009
Posts: 248
Philippines
seecah Offline OP
Member
seecah  Offline OP
Member

Joined: Apr 2009
Posts: 248
Philippines
Hello guys,

Do we have a template or a tool already used for moving water affects?

Thanks..



Can't is not an option™
Re: Moving Water [Re: seecah] #282321
07/31/09 09:39
07/31/09 09:39
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline
User
the_mehmaster  Offline
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
As in water that reacts to objects?

Re: Moving Water [Re: the_mehmaster] #282324
07/31/09 10:15
07/31/09 10:15
Joined: Apr 2009
Posts: 248
Philippines
seecah Offline OP
Member
seecah  Offline OP
Member

Joined: Apr 2009
Posts: 248
Philippines
Best if it has.. :-)

@Meh: maybe you forgot to show me how to set up a skybox without WED.. is it just simply "ent_createlayer("shamrock+6.tga", SKY | CUBE | SHOW, 0);"

Last edited by seecah; 07/31/09 10:16.


Can't is not an option™
Re: Moving Water [Re: seecah] #282558
08/02/09 04:26
08/02/09 04:26
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline
User
the_mehmaster  Offline
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
Quote:
@Meh: maybe you forgot to show me how to set up a skybox without WED.. is it just simply "ent_createlayer("shamrock+6.tga", SKY | CUBE | SHOW, 0);"

Yeah.. Sorry about that. blush
Code:
ent_createlayer("shamrock+6.tga", SKY | CUBE | SHOW, 0);


That should work fine.
As for bouncing off the edge of a level, It's quite simple:
(at the top of your code)
Code:
#define leftborder 100 //The borders of the level
#define rightborder -100
#define upborder 100
#define downborder -100


(inside the player entities action)
Code:
while(1)
{
    if(my.x>leftborder)my.x-=50; //bounce the entity back if it reaches the level borders
    if(my.x<rightborder)my.x+=50;
    if(my.y>upborder)my.x-=50;
    if(my.y<downborder)my.x+=50;
    wait(1);
}



A few weeks back, EvilSOB made a fluid action that can be assigned to .hmps:
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=276463&page=1
Download the first demo to see what it can do.
If you need help on how to use it, PM me.smile

Last edited by the_mehmaster; 08/02/09 04:32.

Gamestudio download | 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