I have a question. It's about Blocky with coding~^^;

35 views
Skip to first unread message

박정민

unread,
Aug 17, 2017, 9:48:39 PM8/17/17
to CoSpaces Scripting
I find certain picture on website. And I uploaded to scene. for example; first location of item is (0,0,0)

And when I clicked the item(picture), I want to the item move to certain location like (2,2,3).

And If I click again, the item move the first set location(0,0,0)

By using coding block in blockly, how can I make coding?

I want to use coding block in blocky.

https://cospac.es/cnAx

Stefan Filff

unread,
Aug 18, 2017, 4:15:39 AM8/18/17
to CoSpaces Scripting
Hi,

to have two different events happen when you click on an item, you can make a variable that counts how often you clicked on the item. Here, every second click moves pica back to the first set location.

Here's the blockly code:



Here's how it's made:


박정민

unread,
Aug 21, 2017, 2:06:53 AM8/21/17
to CoSpaces Scripting
Thank you. It was a big help for me. Thanks.
Reply all
Reply to author
Forward
0 new messages