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.

AppGameKit Classic Chat / [SOLVED] Trouble with ShapeUp

Author
Message
basicFanatic
6
Years of Service
User Offline
Joined: 7th Jun 2017
Location:
Posted: 21st Aug 2020 12:01 Edited at: 27th Oct 2020 20:44
I'm finally trying to use this little essential tool here:
https://forum.thegamecreators.com/thread/194938

I got so far as to draw a vector shape and export it as a .shp file. So far so good.

Then I tried putting this code in my game:



But when it reaches this line
dim shp[shapes] as dataType
it throws an error saying that shapes have not been defined. What to do here?

The author of this post has marked a post as an answer.

Go to answer

blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 22nd Aug 2020 07:23
This post has been marked by the post author as the answer.
basicFanatic
6
Years of Service
User Offline
Joined: 7th Jun 2017
Location:
Posted: 22nd Aug 2020 09:27
Thanks man, that fixed it! I just discovered this thread: ShapeUp By Baxslash Resurrected Must look into it!
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 27th Oct 2020 18:11
@blink/anyone,

has anyone "fixed" ShapeUp so it will compile with current AppGameKit?
[My Itch.io Home] [#LowRezJamAGK2020]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=AGK] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[Google Forum Search]
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 27th Oct 2020 20:47
Lupo4mica37
3
Years of Service
User Offline
Joined: 1st Jun 2020
Location:
Posted: 28th Oct 2020 20:14 Edited at: 29th Oct 2020 00:03
Hi Virtual Nomad. Here is the link to a working version. Please let me know if it works fine. It runs from AppGameKit Classic on my machine. Take care.
????????
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 28th Oct 2020 21:33
it does compile. thanks, lupo.
[My Itch.io Home] [#LowRezJamAGK2020]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=AGK] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[Google Forum Search]
Lupo4mica37
3
Years of Service
User Offline
Joined: 1st Jun 2020
Location:
Posted: 28th Oct 2020 21:49
You're welcome. The edit doesn't work well first time, unless you SAVE the first shape, then it will works, however not correct for some reason. I was never able to fix that in the original, it is some problem with the scale for export, it alters the actual coordinates of the points.
????????
Lupo4mica37
3
Years of Service
User Offline
Joined: 1st Jun 2020
Location:
Posted: 29th Oct 2020 00:02
HERE is the corrected version for edit of ShapeUp. It wasn't the scale as I thought, but the use of floats instead of integer for loading of shapes. This fixed the issue to some extent, but when initially editing the points it would still show the problem, then it would be OK, so I changed the setShape functions to recieve input from integer instead of float to eliminate the problem. Please let me know if it works fine now the edit mode.

PS The link in the comment above has also been updated.
????????

Login to post a reply

Server time is: 2024-03-28 16:28:21
Your offset time is: 2024-03-28 16:28:21