I am experimenting with creating objects without sprites and using the draw_rectangle and draw_circle functions instead.
I think I'll have to work with collision detection functions but I have no idea how to work with them in code.
Thanks in advance for taking the time to help me out.
- Game Maker Community
- → Viewing Profile: Topics: ceefa
ceefa
Member Since 20 Sep 2011Offline Last Active Jun 22 2012 01:52 AM
Community Stats
- Group New Member
- Active Posts 6
- Profile Views 692
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
0
none
Friends
ceefa hasn't added any friends yet.
Topics I've Started
Collision Detection Without Sprites
16 April 2012 - 05:46 PM
"Sound does not exist"
19 February 2012 - 09:29 PM
I've been dabbling in C++ and really began to see the advantages of straight up coding over drag and drop functions.
I'm in the process of translating into GML from drag and drop and I can't for the life of me figure out what's wrong with
my current code.
I was going to run this as a little experiment in the action execution order of persistent rooms. This is for an overworld
type room. The error I'm getting is that the sound I'm trying to play does not exist.
if pos = 0
{
sound_stop(overworld);
sound_loop(overjoy);
action_another_room(G_1,1);
sound_stop(overjoy);
sound_loop(overworld);
}
_____________________________
ERROR in
action number 1
of Key Press Event for <Enter> Key
for object plov:
Sound does not exist.
_____________________________
I'm in the process of translating into GML from drag and drop and I can't for the life of me figure out what's wrong with
my current code.
I was going to run this as a little experiment in the action execution order of persistent rooms. This is for an overworld
type room. The error I'm getting is that the sound I'm trying to play does not exist.
if pos = 0
{
sound_stop(overworld);
sound_loop(overjoy);
action_another_room(G_1,1);
sound_stop(overjoy);
sound_loop(overworld);
}
_____________________________
ERROR in
action number 1
of Key Press Event for <Enter> Key
for object plov:
Sound does not exist.
_____________________________
Difficulty Translating Drag/Drop to GML
03 October 2011 - 02:39 AM
Using scripts will allow me to create much more complex actions, events, and objects without all the clutter of using the drag/drop tools. I am having difficulty translating the create moving instance function. I did check out this fantastic resource but because of my limited knowledge of correct gml syntax I am having difficulty using what is provided in the guide.
The original function is this
Create Moving
applies to: self
object: bullet1
x:0
y:0
speed: 25
direction: var_angle+12
[X] Relative
I tried to translate it like this:
self = instance_create(self.x,self.y,bullet1) with (ID) motion_set(player1.var_angle+12,25)
What isn't right about this?
COMPILATION ERROR in code action
Error in code at line 1:
self = instance_create(self.x,self.y,bullet1) with (ID) motion_set(player1.var_angle+12,25)
^
at position 6: Variable name expected.
^this is the error message^
edit: Forgot to mention, I've got the registered version.
The original function is this
Create Moving
applies to: self
object: bullet1
x:0
y:0
speed: 25
direction: var_angle+12
[X] Relative
I tried to translate it like this:
self = instance_create(self.x,self.y,bullet1) with (ID) motion_set(player1.var_angle+12,25)
What isn't right about this?
COMPILATION ERROR in code action
Error in code at line 1:
self = instance_create(self.x,self.y,bullet1) with (ID) motion_set(player1.var_angle+12,25)
^
at position 6: Variable name expected.
^this is the error message^
edit: Forgot to mention, I've got the registered version.
- Game Maker Community
- → Viewing Profile: Topics: ceefa
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content