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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 683 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Why does this not work? [Re: Perkele] #77584
06/14/06 21:33
06/14/06 21:33
Joined: May 2006
Posts: 398
Bot190 Offline
Senior Member
Bot190  Offline
Senior Member

Joined: May 2006
Posts: 398
hay i know what it is. its supposed to move the camera. that could be it.


Wait, there isn't a "Make My Game Now" button?
Re: Why does this not work? [Re: Bot190] #77585
06/14/06 22:36
06/14/06 22:36
Joined: Jun 2006
Posts: 14
P
Perkele Offline OP
Newbie
Perkele  Offline OP
Newbie
P

Joined: Jun 2006
Posts: 14
Then why does the manual say it should move the entity to which the action is assigned?

Quote:


...
Now select Run Level, and try using the cursor keys to 'walk'.Hmm. Well, we must admit that your first movement action doesn't behave as well as the prefabricated one. What happens is that our movement does not follow the player's facing - it follows along the X- and Y-axes of the coordinate system. In fact, you can't rotate the player at all. No wonder, you haven't provided any instruction for that.
...





Re: Why does this not work? [Re: Perkele] #77586
06/14/06 23:35
06/14/06 23:35
Joined: May 2006
Posts: 398
Bot190 Offline
Senior Member
Bot190  Offline
Senior Member

Joined: May 2006
Posts: 398
what did you search for to find the code?


Wait, there isn't a "Make My Game Now" button?
Re: Why does this not work? [Re: Bot190] #77587
06/15/06 11:32
06/15/06 11:32
Joined: Jun 2006
Posts: 14
P
Perkele Offline OP
Newbie
Perkele  Offline OP
Newbie
P

Joined: Jun 2006
Posts: 14
Nothing, like I said, it's from the manual that came with 3dgs.
I was following the tutorial 'Tutorial: Teach Yourself Game Programming in 6 Days' which is in the manual...

Re: Why does this not work? [Re: Perkele] #77588
06/15/06 20:10
06/15/06 20:10
Joined: May 2005
Posts: 91
Europe,Cyprus
Frozen Offline
Junior Member
Frozen  Offline
Junior Member

Joined: May 2005
Posts: 91
Europe,Cyprus
my bad..

reminder to self: read all of the posts in the topic before posting and wasting your time -.-

Last edited by Frozen; 06/15/06 20:14.
Re: Why does this not work? [Re: Frozen] #77589
06/16/06 14:40
06/16/06 14:40
Joined: Jun 2006
Posts: 14
P
Perkele Offline OP
Newbie
Perkele  Offline OP
Newbie
P

Joined: Jun 2006
Posts: 14
Allright then, I still don't know why it doesn't work which is quite poor since it's the first script in the manual and they build upon it so if I can't get this thing to work I can't continue the tutorial...
Anyone?

Re: Why does this not work? [Re: Perkele] #77590
06/16/06 14:47
06/16/06 14:47
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Quote:


Well I'm quite new so I'm not sure what exact steps to follow, but I just made a map, then through map properties I assigned my Script02.wdl which contained nothing but the code I pasted before.
And all it does is move my camera...





So you have no function main() ?

Re: Why does this not work? [Re: Xarthor] #77591
06/16/06 14:59
06/16/06 14:59
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
Try comment out move_view() and see what happen,
like this :

// move_view();

Re: Why does this not work? [Re: vlau] #77592
06/16/06 17:00
06/16/06 17:00
Joined: Oct 2003
Posts: 2,628
IL,US
FeiHongJr Offline
Expert
FeiHongJr  Offline
Expert

Joined: Oct 2003
Posts: 2,628
IL,US
Yea im a little confused... How does your level run if you only have the action you posted above in your script? You need a main function to load the level.

Try this...
Code:
 
Function Main()
{
freeze_mode = 1;
level_load("your_level.wmb");
Wait(3);
Freeze_mode = 0;
}

action move_me
{
while (1)
{
my.X += 10 * KEY_FORCE.Y;
my.Y -= 10 * KEY_FORCE.X;
// move_view(); // Comment this out since you dont have a move_view function
//Else you could create a move_view() function.
wait(1);
}
}



Just assign the action to your entity... Make sure its visible from the cameras position. IE.. Add a position pointing at your entity or make sure your entitys is viewable from cameras default position 0,0,0.

Build your level and run it... In theory should work with out any problems.

Tho in reality its not very useful to move an entity by this method. Least in my opinion. Better to use C_move or even ent_move. Look them both up in the manual.

Grimbers 1st person shooter tutorial on the resource link I beleive is the first tutorial to help me grasp the concept of using ent_move... C_move is basically the same only a lil different and from what I heard better. With C_move and ent_move your entity can check for collision.

Hope this helps....

BTW. The tutorial which you mention to my knowledge is pretty dated.... Better to download the workshops from the download page... Here

Last edited by FeiHongJr; 06/16/06 17:03.

http://www.freewebs.com/otama_syndicate/index.htm - Each master to his own technique.

- Not me said the bee, Nor I said the fly.
Re: Why does this not work? [Re: FeiHongJr] #77593
06/17/06 19:06
06/17/06 19:06
Joined: Jun 2006
Posts: 14
P
Perkele Offline OP
Newbie
Perkele  Offline OP
Newbie
P

Joined: Jun 2006
Posts: 14
I'll look into the workshops, but now I am the one who is confused. All I did was make a map in WED, then write a script in SED, assigned the script to my map through map properties, then assigned the action to my entity and it does not do what I want it to do, even your code had the same effect. Is there maybe some stupid beginners mistake I made making WED always use a template or something?

Page 2 of 2 1 2

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