Status
Not open for further replies.

Kalombi

Veteran
Veteran
Joined
Oct 10, 2018
Messages
63
Reaction score
45
First Language
English
Primarily Uses
N/A
Per the you tube zoom tutorial, here is my script:


Var xPos = $gamePlayer.screenX();
Var yPos = $gamePlayer.screenY();
$gameScreen.startZoom(xPos, yPos, 2.0, 300);

Here is my error message:
Syntax Error
Unexpected Identifier

What went wrong?
 

nakina

Dat boi
Veteran
Joined
Sep 17, 2016
Messages
37
Reaction score
21
First Language
English
Primarily Uses
RMMV
I tried just removing the Var part of your variable declarations and that fixed it

Code:
xPos = $gamePlayer.screenX();
yPos = $gamePlayer.screenY();
$gameScreen.startZoom(xPos, yPos, 2.0, 300);
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,647
Reaction score
15,735
First Language
English
Primarily Uses
RMMV
or maybe use var instead of Var?
 

Kalombi

Veteran
Veteran
Joined
Oct 10, 2018
Messages
63
Reaction score
45
First Language
English
Primarily Uses
N/A
Removing the Var worked!

Thanks!!
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
9,193
Reaction score
5,997
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

Switch actor positions during battle
Download
01010.PNG
SF_People3_1 added!
index.php

Micro rant. The worst part of working from home when you live with your family is seeing how inconsiderate they are. "Hey, you're sitting in front of your computer, that means you're not doing anything! I want to put the TV at 200 decibels!"

If I was working in the office would you still talking me like that?
It's definitely discouraging when streamers give a try-to-say-it-nicely (i.e. bad) review of your game demo. It's like jumping into a cold pool. Bad initally, but it gets better with time. And you are now more alert and see better.
Some screenshots of the pub and lodging with the beginnings of clutter taking shape
TTp8uCw.png

jtC202e.png

bSXgyVl.png

eRx9PUF.png

Forum statistics

Threads
118,513
Messages
1,116,528
Members
155,514
Latest member
EemeLamsi
Top