TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Image API question
Pages:
1
Image API question
badower
Posts: 32
June 18, 2023, 08:17:08 pm
HI, I'm starting to learn the Image API. Can someone please explain why the green square goes to the top left corner of the screen when I use the 'slide' block (please see attached scree shots). If this is the wrong block, how then to move an instance image, say for example, across the screen in a smooth motion? Really appreciate any help.
TF101
Posts: 85
June 25, 2023, 03:44:39 am
Maybe try "slide Copy2 - Instance
to
x: 500 y: 300 over......"
badower
Posts: 32
June 25, 2023, 11:43:56 pm
Thanks for your reply. I did think of that and had tried it, but it made no difference. Even when I specify a long time, the green square appears instantly on the top left screen corner.
CmdrWhitey13
Posts: 505
September 17, 2023, 08:40:50 am
Think it is the order of it. You are setting the Copy2 variable after the attach part. You are overriding the variable. You need to set it before you move and attach it.
Hope it helps.
Pages:
1