Gamestudio Links
Zorro Links
Newest Posts
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
1 registered members (AndrewAMD), 1,310 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
just move an object #78646
06/19/06 09:39
06/19/06 09:39
Joined: Jun 2006
Posts: 1
G
gila Offline OP
Guest
gila  Offline OP
Guest
G

Joined: Jun 2006
Posts: 1
i, i discovered this beautifoul software just yesterday, i'm following some tutorial but i do not understand how to move an object.

if i have a cube called "cube_test" how i can refeer to it and move it by the keyboard?

thank you and sorry for the baracing question

Re: just move an object [Re: gila] #78647
06/19/06 10:21
06/19/06 10:21
Joined: Jun 2004
Posts: 73
Switzerland, Basel
D
Des_Tiny Offline
Junior Member
Des_Tiny  Offline
Junior Member
D

Joined: Jun 2004
Posts: 73
Switzerland, Basel
You only can move entitiy objects (eg: *.mdl, *.wmb). Right click on an entity in WED, choose Properies and Behaviour. There you have to choose the action you want. A simple move action (without collision) could be:
Code:
 
action move_cube
{
var move_speed = 2;
while(1)
{
my.x += key_cuu * move_speed * time - key_cud * move_speed * time;
my.y += key_cur * move_speed * time - key_cul * move_speed * time;
wait(1);
}
}



Last edited by Des_Tiny; 06/19/06 10:22.

_______________________________________________ GameStudio 6 Extra Edition Processor: 2.80 Ghz RAM: 2046MB Graficcard: Radeon X600 256MB DOWNLOAD PONG FIGHT

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