Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
Does anyone know how I could make a window shatter when I shoot it or put a hole in a building when I shoot it
Saberking13 wrote:Hi everyone. I am going to make my first game soon, but I need to draw my graphics first. Does anyone know how I could make a window shatter when I shoot it or put a hole in a building when I shoot it ...
Saberking13 wrote::D Also, can you make a high scores list?
mercedes wrote:Welcome to the forums Saberking..Does anyone know how I could make a window shatter when I shoot it or put a hole in a building when I shoot it
There are a few different ways to do this..You could create an animation,however you would need a plugin for this use. You can evaluate AM under 20 frames which includes some plugins. I believe the animation plugin is available to use with evaluation.
You could use a video..'Play a Video' under the action tab..or
Use Flash plugin..~
You could make series of pictures..of the glass..one not broken..another picture broken...You would do this in a series of pictures..to load..Be it with script[full version] or variables hiding the series one at a time---This way would be the easiest I would think...
Again it depends on whether or not u will use Free version of AM or Full... This link will be helpful to you in creating puzzles..with either version.
http://www.adventuremaker.com/help/contents.htm
Also check out the tutorial section of the forum..
http://www.adventuremaker.com/phpBB2/viewforum.php?f=10
You'll probably find a score tutorial to your liking in any one of those two links, If not...then post back..
Hope that helps..
B.t.w.
....after posting your post, you will see a button on the far right side where u see 'Edit' or 'Quote'. If you care to add something after ..like u did here...Hit the Edit..and u can simply edit your post as opposed to double posting...
Peace
reneuend wrote:I did this, but it requires doing scripting.
Lyberodoggy wrote:Saberking13 wrote::D Also, can you make a high scores list?
http://www.adventuremaker.com/phpBB2/viewtopic.php?t=3580
Here you will find a score board tutorial (you must scroll down the page a little bit, because the first thing mentioned is a player naming system)
Lyberodoggy wrote:Here is the modifyied source code of the scoreboard system:
After creating a global integer variable called Score and one called INIKey, type this in the hotspot the player has to click to save his score
- Code: Select all
If Score=0 Then
MsgBox "You can't save your score If it's 0"
Else
Name=InputBox("Your Name or Nickname","Score")+cstr(": ")
INIKey=INIKey+1
Action.WriteINI "ScoreBoard.ini",2,1,INIKey
Action.WriteINI "ScoreBoard.ini",1,INIKey,Name + " " + cstr(Score)
Action.GoToFrame "Scoreboard"
End If
where Scoreboard should be replaced with the internal name of the frame where your scoreboard will be placed.
Go to the scoreboard frame.
In the frame's properties type this code:
- Code: Select all
entries=INIKey
Text(1).Caption=Scoreboard
Do
Text(1).Caption=Text(1).Caption+Action.ReadINI("ScoreBoard.ini",1,entries)+vblf
entries=entries-1
Loop While entries>0
where Text(1) should be replaced if there's another text with that index. Create a text with the caption "Scoreboard" and place it where you want the scoreboard to appear.
To create a "Clear Scoreboard" button, enter these lines in the hotspot you will use:
- Code: Select all
If INIKey>0 Then
Answer=MsgBox("Are you sure?",vbyesno)
If Answer=vbyes Then
Do
Action.WriteINI "ScoreBoard.ini",2,1,""
Action.WriteINI "ScoreBoard.ini",1,INIKey,""
INIKey=INIKey-1
Loop While INIKey>0
Action.GoToFrame "Scoreboard"
End If
Else
MsgBox "The Scoreboard is already empty"
End If
Now one thing is left: go to Project Properties and in "Advanced", in the "Execute VBS every time a frame is loaded" field paste these:
- Code: Select all
INIKey=ConvertToNumber(Action.ReadINI("ScoreBoard.ini",2,1))
Hope you like this one!
Mystery wrote:If you click the link that Lyberodoggy has provided, and scroll down, you find a step-by-step tutorial:Lyberodoggy wrote:Here is the modifyied source code of the scoreboard system:
After creating a global integer variable called Score and one called INIKey, type this in the hotspot the player has to click to save his score
- Code: Select all
If Score=0 Then
MsgBox "You can't save your score If it's 0"
Else
Name=InputBox("Your Name or Nickname","Score")+cstr(": ")
INIKey=INIKey+1
Action.WriteINI "ScoreBoard.ini",2,1,INIKey
Action.WriteINI "ScoreBoard.ini",1,INIKey,Name + " " + cstr(Score)
Action.GoToFrame "Scoreboard"
End If
where Scoreboard should be replaced with the internal name of the frame where your scoreboard will be placed.
Go to the scoreboard frame.
In the frame's properties type this code:
- Code: Select all
entries=INIKey
Text(1).Caption=Scoreboard
Do
Text(1).Caption=Text(1).Caption+Action.ReadINI("ScoreBoard.ini",1,entries)+vblf
entries=entries-1
Loop While entries>0
where Text(1) should be replaced if there's another text with that index. Create a text with the caption "Scoreboard" and place it where you want the scoreboard to appear.
To create a "Clear Scoreboard" button, enter these lines in the hotspot you will use:
- Code: Select all
If INIKey>0 Then
Answer=MsgBox("Are you sure?",vbyesno)
If Answer=vbyes Then
Do
Action.WriteINI "ScoreBoard.ini",2,1,""
Action.WriteINI "ScoreBoard.ini",1,INIKey,""
INIKey=INIKey-1
Loop While INIKey>0
Action.GoToFrame "Scoreboard"
End If
Else
MsgBox "The Scoreboard is already empty"
End If
Now one thing is left: go to Project Properties and in "Advanced", in the "Execute VBS every time a frame is loaded" field paste these:
- Code: Select all
INIKey=ConvertToNumber(Action.ReadINI("ScoreBoard.ini",2,1))
Hope you like this one!
Saberking13 wrote:reneuend wrote:I did this, but it requires doing scripting.
How do you script on this software? I'm new. Also, what were your scripts, if you don't mind showing them to me.
Saberking13 wrote:How would I make holes in a building when it gets shot then,(I don't have time to make a hole in every possibe place in the building
Mystery wrote:Just as an information for you since you use the free version: Although some features are for the full version only (like scripting), you can evaluate them for projects up to 20 frames.
If you would like to learn more about the supported features for the different versions, and target platforms, please check this page:
http://www.adventuremaker.com/features_ ... _touch.htm
Return to Adventure Maker General Discussion
Users browsing this forum: No registered users and 0 guests