Gamestudio Links
Zorro Links
Newest Posts
zorro license, IB connection
by miwok. 12/06/23 16:32
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (miwok, AndrewAMD, TipmyPip, 3run, Quad, 1 invisible), 645 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Bow&arrow [Re: CD_saber] #148697
08/21/07 20:55
08/21/07 20:55
Joined: Aug 2003
Posts: 2,008
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,008
Bucharest, Romania
ent_move (my.skill12, nullvector);

should be changed to:

c_move (my, my.skill12, nullvector, ignore_passable);

Re: Bow&arrow [Re: George] #148698
08/22/07 12:08
08/22/07 12:08
Joined: Jan 2002
Posts: 454
Germany
CD_saber Offline OP
Senior Member
CD_saber  Offline OP
Senior Member

Joined: Jan 2002
Posts: 454
Germany
Ok, thank you George, it works much better with c_move.

The main problem is that the player does not know where the arrow goes. Is there an easy way to create a system for aiming?

Thank you for helping me!


Ja, lach du nur du haariges Pelzvieh!
Re: Bow&arrow [Re: CD_saber] #148699
08/23/07 19:00
08/23/07 19:00
Joined: Aug 2003
Posts: 2,008
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,008
Bucharest, Romania
I guess that the arrow is generated close to the center, so you'll only need a panel (a crosshair) placed near the center of the screen.

Re: Bow&arrow [Re: George] #148700
08/26/07 11:28
08/26/07 11:28
Joined: Jan 2002
Posts: 454
Germany
CD_saber Offline OP
Senior Member
CD_saber  Offline OP
Senior Member

Joined: Jan 2002
Posts: 454
Germany
Ok, now the code is nearly perfect for me.
Just one last thing,
is there an easy way to make the camera swingen left an right (trembling) when the player is aiming?

Thank you very much


Ja, lach du nur du haariges Pelzvieh!
Re: Bow&arrow [Re: CD_saber] #148701
08/29/07 06:07
08/29/07 06:07
Joined: Aug 2003
Posts: 2,008
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,008
Bucharest, Romania
You could use something like this:
Code:

function camera_swing_startup()
{
while (1)
{
if (the player is aiming) // put your own stuff here
{
camera.x += 1 - random(2);
camera.y += 1 - random(2);
camera.z += 1 - random(2);
}
wait (1);
}
}



Last edited by George; 08/29/07 06:10.
Page 2 of 2 1 2

Moderated by  George 

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