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
2 registered members (AndrewAMD, VoroneTZ), 1,258 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Diablo style game #455241
10/14/15 17:00
10/14/15 17:00
Joined: Aug 2013
Posts: 101
M
mschoenhals Offline OP
Member
mschoenhals  Offline OP
Member
M

Joined: Aug 2013
Posts: 101
Hi all!
Looking to start work on a "Diablo" style game where the camera is in an isometric position; possibly with the ability to zoom in and out with the wheel mouse. Does anyone know where I might see some example code for this?

Thanks in advance.

Re: Diablo style game [Re: mschoenhals] #455244
10/14/15 18:16
10/14/15 18:16
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
Maybe this helps
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=30905

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=30905

Very Basic cam (not tested)
Code:
while (1){
   vec_set (camera.x, my.x);
   camera.z += 100;
   camera.tilt = 80;
   wait (1);
}


and for zoom u could mod this example from manual (with mickey.z 4ex)
Code:
void sniper()
 {
   while(1)
   {
     if(mouse_right) // right mouse button pressed
     {
       camera.arc = max(camera.arc - time_step, 30);	 // reduce fiel of view
     }
     else
     {
       camera.arc = min(camera.arc + time_step, 60);    // increase fiel of view
     }
     wait(1);
   } 
 }



greets





Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Diablo style game [Re: rayp] #455245
10/14/15 18:25
10/14/15 18:25

M
Malice
Unregistered
Malice
Unregistered
M



A few dollars and I'll write it for you! lol wink

to use the mouse wheel he'll need micky.z

Last edited by Malice; 10/14/15 18:26.
Re: Diablo style game [Re: ] #455246
10/14/15 18:27
10/14/15 18:27
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
Money Money...all People want is Money...
Quote:
manual (with mickey.z 4ex)

Last edited by rayp; 10/14/15 18:28.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Diablo style game [Re: rayp] #455247
10/14/15 18:29
10/14/15 18:29

M
Malice
Unregistered
Malice
Unregistered
M



^ opps missed it! Sorry man!

Quote:
Money Money...all People want is Money...


Well it's been a decade of give code for free. Few dollars gets fast and well written code. I guess what I'm saying is - I'm not bored enough to write this for you right now. But maybe I'll become bored soon, never know.

Last edited by Malice; 10/14/15 18:32.
Re: Diablo style game [Re: ] #455248
10/14/15 18:30
10/14/15 18:30
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
No prob grin

LOVE!


edit:
U can find a lot of camera handling examples on RealSpawns Workshop collection located here:
http://www.rp-interactive.nl/ws/wshops.html

3rd person example but u can see how cams can check for obstacles, walls and stuff
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=429503#Post429503

Last edited by rayp; 10/14/15 18:55.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Diablo style game [Re: rayp] #455261
10/15/15 10:48
10/15/15 10:48
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline

Expert
Realspawn  Offline

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
have a look here : https://www.youtube.com/watch?v=zq7krn8Z_jo

all camera views are handled here


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain

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