Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 559 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 4 of 4 1 2 3 4
Re: Isometric controls+camera RTS/RPG The Sims [Re: Samb] #30933
10/03/05 21:22
10/03/05 21:22
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline OP

Senior Expert
Orange Brat  Offline OP

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
Looking good. Don't forget that you can restrict movement of the clicked on object by holding down the CTRL or ALT key. One work for X and the other for Y. Also, the camera can be dollied if the mouse cursor touches the edges of the screen. I can't recall if that can be turned off, but I recall that there are boundaries, so it won't dolly forever. Of course, the boundaries can be altered via a VAR tweak. Another feature is the ability to rotate the clicked on object. I can't remember the way to do it, but I'm sure it's in this thread or the readme file. I never finished that, so I don't think there's a rotate "snap" in place, yet.


My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: Isometric controls+camera RTS/RPG The Sims [Re: Orange Brat] #30934
10/03/05 22:19
10/03/05 22:19
Joined: Nov 2000
Posts: 1,534
hamburg
Samb Offline
Serious User
Samb  Offline
Serious User

Joined: Nov 2000
Posts: 1,534
hamburg
yep thats very usefull brat
and no the rotage hasnt snapping and you must press the middle mouse key to rotate (I change thatbecause I havent a middle mouse key ^^)
new function added
you have the choice I you want to make the unused level transparent or invisible




Re: Isometric controls+camera RTS/RPG The Sims [Re: bupaje] #30935
02/14/06 07:18
02/14/06 07:18
Joined: May 2005
Posts: 138
jamrud khatulistiwa
Kotakide Offline
Member
Kotakide  Offline
Member

Joined: May 2005
Posts: 138
jamrud khatulistiwa
great camera system,
now I must think what kind of game that I would make with this nice camera system...

Re: Isometric controls+camera RTS/RPG The Sims [Re: Kotakide] #30936
02/16/06 16:17
02/16/06 16:17
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline
Serious User
jigalypuff  Offline
Serious User

Joined: Nov 2005
Posts: 1,007
how would i go about useing the left mouse button to rotate the map? i would like to use this in conjuction with a popup menu but i need the right mouse button for that.
sweet bit of code btw, i shall find untold uses for this.


Why does everyone like dolphins? Never trust a species which smiles all the time!
Re: Isometric controls+camera RTS/RPG The Sims [Re: jigalypuff] #30937
02/16/06 17:01
02/16/06 17:01
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline OP

Senior Expert
Orange Brat  Offline OP

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
In the cam.wdl is where the camera panning is handled:

Code:

if(mouse_right == 1 || key_pressed(tl_key_scancode) || key_pressed(tr_key_scancode) || key_pressed(ldown_key_scancode) || key_pressed(lup_key_scancode))
{
orbit_camera_pan -= (mouse_force.x * mouse_sensitivity * mouse_invert_pan) -
((key_pressed(tr_key_scancode) - key_pressed(tl_key_scancode)) * mouse_sensitivity * mouse_invert_pan * time);
orbit_camera_pan = orbit_camera_pan%360; //limit to 360 degrees

orbit_camera_tilt -= (mouse_force.y * mouse_sensitivity * mouse_invert_tilt) -
((key_pressed(ldown_key_scancode) - key_pressed(lup_key_scancode)) * mouse_sensitivity * mouse_invert_tilt * time);
orbit_camera_tilt = clamp(orbit_camera_tilt, orbit_min_tilt, orbit_max_tilt); //limit
}



There are some checks in other parts of the system that check whether mouse_right and mouse_left are pressed or not. You'll have to change those if you change the above mouse_right to mouse_left. I'm guessing you'll have to switch all the rights to lefts and vice versa.


My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: Isometric controls+camera RTS/RPG The Sims [Re: Orange Brat] #30938
02/18/06 12:43
02/18/06 12:43
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline
Serious User
jigalypuff  Offline
Serious User

Joined: Nov 2005
Posts: 1,007
cheers mate, i got that to work, now i have run into another problem, i have a gui which will launch your code, it goes fine up until i hit the new game button, then i get a can`t find hero action error, i have deleted all the blocks from the wmb bar the grid one and the camera one, any thoughts on this please?


Why does everyone like dolphins? Never trust a species which smiles all the time!
Re: Isometric controls+camera RTS/RPG The Sims [Re: jigalypuff] #30939
02/19/06 15:45
02/19/06 15:45
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline
Serious User
jigalypuff  Offline
Serious User

Joined: Nov 2005
Posts: 1,007
it`s ok i got it to work, i forgot to include the scripts into the main wdl, now all i need ot figure is a random star generator, and how a turn funvction works lmao, thanks again for this code.


Why does everyone like dolphins? Never trust a species which smiles all the time!
Page 4 of 4 1 2 3 4

Moderated by  adoado, checkbutton, mk_1, Perro 

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