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 / How would I make a image menu?

Author
Message
DMJ
13
Years of Service
User Offline
Joined: 6th Sep 2011
Location: Australia
Posted: 19th Nov 2017 23:55
I'm working on my own map editor and I was wondering how I would display images to choose from. I was looking into the GUI/menu commands. Is there a way to have like an image carousal?
puzzler2018
User Banned
Posted: 20th Nov 2017 07:28
AGK is a games development kit, not a application development as such - so commands for this type of thing is not this tool

but, if put mind to it, it can be achieved by making your own carousel with the existing commands, like sprites images, positions, rotations, movement and collisions etc

D
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 20th Nov 2017 08:54
Quote: ". Is there a way to have like an image carousal?"

Yes, but as it's a programming language, you'll have to write it yourself.
Click here for VR Legend of Zelda stuff
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 20th Nov 2017 11:53 Edited at: 20th Nov 2017 11:53
you create a sprite easy with
LoadSprite ( imagefile )

and test mouse with
GetPointerPressed ()
GetPointerX ()
GetPointerY ()
GetSpriteHitTest ( iSpriteIndex, x, y )

you can move sprites
GetSpriteX ( iSpriteIndex )
SetSpriteX ( iSpriteIndex, fX )
GetSpriteXByOffset ( iSpriteIndex )
SetSpritePositionByOffset ( iSpriteIndex, fX, fY )

or maybe with Tweening
https://www.appgamekit.com/documentation/Reference/Tweening.htm
AGK (Steam) V2017.09.25 : Windows 10 Pro 64 Bit : AMD (17.11.2) Radeon R7 265 : Mac mini OS High Sierra (10.13)

Login to post a reply

Server time is: 2024-11-24 06:07:09
Your offset time is: 2024-11-24 06:07:09