Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Jason Schempp
12
Years of Service
User Offline
Joined: 7th Nov 2013
Location:
Posted: 14th Mar 2014 16:37
How do I set a camera using an inkey stay on that object here this is the code I am using
do
if inkey$()="s"
scale object 1, 5,5,5
set camera to follow P1X#,P1Y#+5,P1Z#, A1Y,50,10,20,1
endif
if inkey$()="l"
scale object 1,100,500,100
set camera to follow P1X#,P1Y#+5,P1Z#, A1Y,50,50,20,1
endif
loop
another question when I switch modes how do I get the camera to switch and stay?

JASON SCHEMPP
timer help
12
Years of Service
User Offline
Joined: 14th Jan 2014
Location:
Posted: 14th Mar 2014 18:19
See your doing it all wrong, you inkey needs to be T because it looks better. Because it looks better your game should work because the game will think your cool. Also you need to use code snippets. If this doesn't work, then you have to believe in yourself.
ShellfishGames
13
Years of Service
User Offline
Joined: 6th Feb 2013
Location:
Posted: 14th Mar 2014 18:27
What is wrong with you, timer help?

@Jason, I don't really understand the question. Some proper grammar and punctuation would certainly help.

Jason Schempp
12
Years of Service
User Offline
Joined: 7th Nov 2013
Location:
Posted: 18th Mar 2014 21:43
@Shellfishgames what I mean is that I want to be able to press l and it switches the camera mode to a different position instead of having to hold down the button

JASON SCHEMPP
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 18th Mar 2014 23:18
Try this:



You need to use set camera to follow each loop. Use an auxiliary variable to record whether a key has already been pressed.



Powered by Free Banners
Jason Schempp
12
Years of Service
User Offline
Joined: 7th Nov 2013
Location:
Posted: 19th Mar 2014 16:07
thanks I'll try it

JASON SCHEMPP

Login to post a reply

Server time is: 2026-07-07 13:15:32
Your offset time is: 2026-07-07 13:15:32