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.

2D All the way! / Trying to make a Pachinko game

Author
Message
DonArt
User Offline
Joined: 3rd Jan 2019
Location:
Posted: 4th Jan 2019 03:15
Hi guys, I'm new to AppGameKit, and currently I have a task to develop a Pachinko game. I'm stuck at creating the wall. Can someone teach me on how to create the wall (blue box) as shown in the picture?

Attachments

Login to view attachments
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
Recently Online
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 5th Jan 2019 23:19 Edited at: 5th Jan 2019 23:21
What commands are you using to create the shapes?
What you have there looks good. How is it not working?
DonArt
User Offline
Joined: 3rd Jan 2019
Location:
Posted: 7th Jan 2019 01:42
blink0k

thank you for your respond. Actually, the wall created in that picture, was created by our ex-staff. We don't really how he made it. My boss told me that all he can remember is the staff used a 3rd party apps/software to generate the code of the wall. So, is there really a 3rd party apps/software that can easily generate the code? Sorry if you find this question kinda funny, but I'm really wanna learn so much about AGK.
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
Recently Online
Joined: 22nd Feb 2013
Location: the land of oz
DonArt
User Offline
Joined: 3rd Jan 2019
Location:
Posted: 7th Jan 2019 09:31
blink0k
Thanks a lot ^_^

This really helps me a lot.
DonArt
User Offline
Joined: 3rd Jan 2019
Location:
Posted: 24th Jan 2019 01:56
Can anyone help me my coding. I want to make a score animation. When the ball collide with the pocket, it will appear the score sprite, and move up until the end of the screen and then kill the sprite. But now, i can only make the score sprite appear, but can't move up. I already try to use tween, but there's a problem, when the second ball collide with the pocket, it cannot repeat the same tween because of the current tween id have been assigned to the first ball.

Here are my sample code.

blink0k
AGK Developer
Gold Codemaster
6
Years of Service
Recently Online
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 24th Jan 2019 04:25 Edited at: 24th Jan 2019 04:26
1. Rather than checking positions you can check if the tween has stopped playing using integer GetTweenSpritePlaying( tweenID, spriteID )
2. rather than deleting spr_score i think you should move it off screen so you can use it next time SetSpritePosition(spr_score, -100, -100)

Click the mouse to make the sprite move

DonArt
User Offline
Joined: 3rd Jan 2019
Location:
Posted: 29th Jan 2019 01:42
blink0k

thanks again for the tips. I'll try it later. ^_^

Login to post a reply

Server time is: 2019-07-18 01:45:45
Your offset time is: 2019-07-18 01:45:45