Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
1 registered members (flink), 766 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19057 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
SOLVED - Non-physical gravity - SOLVED #424888
06/23/13 19:27
06/23/13 19:27
Joined: Jan 2013
Posts: 106
Only in your imagination!
The_KING Offline OP
Member
The_KING  Offline OP
Member

Joined: Jan 2013
Posts: 106
Only in your imagination!
******PROBLEM SOLVED******

Last edited by The_KING; 06/24/13 07:07.
Re: Non-physical gravity [Re: The_KING] #424889
06/23/13 20:29
06/23/13 20:29
Joined: Jun 2013
Posts: 108
Alberta, Canada
C
CanadianDavid Offline
Member
CanadianDavid  Offline
Member
C

Joined: Jun 2013
Posts: 108
Alberta, Canada
Using c_trace to determine the distance to the ground is a perfectly fine, working way to simulate gravity. Since the c_trace is stored in variable, "distance_to_ground," it should not be affected by a second c_trace. Just make sure the variable is a local variable and not a global variable!

Re: Non-physical gravity [Re: CanadianDavid] #424891
06/23/13 21:03
06/23/13 21:03

M
Malice
Unregistered
Malice
Unregistered
M



You should also place gravity_vars in the abs_vector of the c_move(my, rel_vec, vector(0,0,gravity_var), MODES);

Also The_KING like I said before you will need to use more than one c_trace to do what you want . 1 for the target dot, 1 for shooting and 1 for gravity. It is ok to use more then one c_trace but you need to do logic from each c_trace right after the c_trace because the next one will modify the same data that was set by the pervious one.

Like CanadianDavid says you need to be using local variables and entity skill(which are local variables too)

Last edited by Malice; 06/23/13 21:07.
Re: Non-physical gravity [Re: The_KING] #424910
06/24/13 07:05
06/24/13 07:05
Joined: Jan 2013
Posts: 106
Only in your imagination!
The_KING Offline OP
Member
The_KING  Offline OP
Member

Joined: Jan 2013
Posts: 106
Only in your imagination!
***PROBLEM SOLVED***

Re: Non-physical gravity [Re: The_KING] #424913
06/24/13 08:18
06/24/13 08:18
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
@ THE_KING, please do not modify your original posts as they are the reason why the thread exists.
This will be archived with every other post so it would be helpful for folks with similar probs to yours to read the original question in order to understand the subsequent replies.

You of course, dont have to but do consider what the ramifications are for removing the question for other users who are definitely going to be finding they have the same prob and if your question was still there, they would find this thread great.

Cheers....


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